mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
commit
10e63e5dd2
@ -123,6 +123,10 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.performTimeSeriesQuery = function(query, start, end) {
|
this.performTimeSeriesQuery = function(query, start, end) {
|
||||||
|
if (start > end) {
|
||||||
|
throw { message: 'Invalid time range' };
|
||||||
|
}
|
||||||
|
|
||||||
var url = '/api/v1/query_range?query=' + encodeURIComponent(query.expr) + '&start=' + start + '&end=' + end + '&step=' + query.step;
|
var url = '/api/v1/query_range?query=' + encodeURIComponent(query.expr) + '&start=' + start + '&end=' + end + '&step=' + query.step;
|
||||||
return this._request('GET', url, query.requestId);
|
return this._request('GET', url, query.requestId);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user