mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Finish query builder for LIMIT, SLIMIT and ORDER BY time #6065
This commit is contained in:
parent
f577dd0f38
commit
c3eb9da160
@ -250,6 +250,18 @@ export default class InfluxQuery {
|
||||
query += ' fill(' + target.fill + ')';
|
||||
}
|
||||
|
||||
if (target.orderByTime === 'DESC') {
|
||||
query += ' ORDER BY time DESC';
|
||||
}
|
||||
|
||||
if (target.limit) {
|
||||
query += ' LIMIT ' + target.limit;
|
||||
}
|
||||
|
||||
if (target.slimit) {
|
||||
query += ' SLIMIT ' + target.slimit;
|
||||
}
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user