send timerange with metricFindQuery

This commit is contained in:
Sven Klemm
2018-07-13 09:31:39 +02:00
parent bf21f1bf76
commit 693efda4d5
2 changed files with 6 additions and 9 deletions

View File

@ -46,6 +46,7 @@ export class PostgresQueryBuilder {
buildValueQuery(column: string) {
var query = 'SELECT DISTINCT quote_literal(' + column + ')';
query += ' FROM ' + this.target.schema + '.' + this.target.table;
query += ' WHERE $__timeFilter(' + this.target.timeColumn + ')';
query += ' ORDER BY 1 LIMIT 100';
return query;
}