Finish query builder for LIMIT, SLIMIT and ORDER BY time #6065

pull/7735/head
thuck 9 years ago
parent f577dd0f38
commit c3eb9da160
  1. 12
      public/app/plugins/datasource/influxdb/influx_query.ts

@ -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…
Cancel
Save