Commit a87b5f75 by Torkel Ödegaard

fix(datasources): minor fix to data sources after apps branch merge

parent 4db57cc0
...@@ -31,5 +31,5 @@ public/css/*.min.css ...@@ -31,5 +31,5 @@ public/css/*.min.css
conf/custom.ini conf/custom.ini
fig.yml fig.yml
profile.cov profile.cov
grafana /grafana
.notouch .notouch
///<reference path="../../../headers/common.d.ts" />
class GrafanaDatasource {
constructor(private backendSrv) {}
query(options) {
return this.backendSrv.get('/api/metrics/test', {
from: options.range.from.valueOf(),
to: options.range.to.valueOf(),
maxDataPoints: options.maxDataPoints
});
}
}
export {GrafanaDatasource};
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import {GrafanaDatasource} from './datasource';
var module = angular.module('grafana.directives');
module.directive('metricQueryEditorGrafana', function() {
return {templateUrl: 'app/plugins/datasource/grafana/partials/query.editor.html'};
});
export {GrafanaDatasource, GrafanaDatasource as Datasource};
///<reference path="../../../headers/common.d.ts" />
import angular from 'angular';
import {MixedDatasource} from './datasource';
var module = angular.module('grafana.directives');
module.directive('metricQueryEditorMixed', function() {
return {templateUrl: 'app/plugins/datasource/mixed/partials/query.editor.html'};
});
export {MixedDatasource, MixedDatasource as Datasource};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment