2015-08-16 13:52:30 -05:00
|
|
|
define([
|
2016-01-09 12:03:03 -06:00
|
|
|
'./datasource',
|
2015-08-16 13:52:30 -05:00
|
|
|
],
|
2016-01-14 07:37:04 -06:00
|
|
|
function (GraphiteDatasource) {
|
2015-08-16 13:52:30 -05:00
|
|
|
'use strict';
|
|
|
|
|
2016-01-14 07:37:04 -06:00
|
|
|
function metricsQueryEditor() {
|
2016-01-25 14:09:37 -06:00
|
|
|
return {
|
|
|
|
controller: 'GraphiteQueryCtrl',
|
2016-02-01 11:19:02 -06:00
|
|
|
templateUrl: 'public/app/plugins/datasource/graphite/partials/query.editor.html'
|
2016-01-25 14:09:37 -06:00
|
|
|
};
|
2016-01-14 07:37:04 -06:00
|
|
|
}
|
2015-08-16 13:52:30 -05:00
|
|
|
|
2016-01-14 07:37:04 -06:00
|
|
|
function metricsQueryOptions() {
|
2016-02-01 11:19:02 -06:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/query.options.html'};
|
2016-01-14 07:37:04 -06:00
|
|
|
}
|
2015-08-16 13:52:30 -05:00
|
|
|
|
2016-01-14 05:35:31 -06:00
|
|
|
function annotationsQueryEditor() {
|
2016-02-01 11:19:02 -06:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/annotations.editor.html'};
|
2016-01-14 05:35:31 -06:00
|
|
|
}
|
2015-08-16 13:52:30 -05:00
|
|
|
|
2016-01-14 05:35:31 -06:00
|
|
|
function configView() {
|
2016-02-01 11:19:02 -06:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/config.html'};
|
2016-01-14 05:35:31 -06:00
|
|
|
}
|
2016-01-09 16:34:20 -06:00
|
|
|
|
2016-02-01 16:24:08 -06:00
|
|
|
function ConfigView() {
|
|
|
|
}
|
|
|
|
ConfigView.templateUrl = 'public/app/plugins/datasource/graphite/partials/config.html';
|
|
|
|
|
2016-01-09 12:03:03 -06:00
|
|
|
return {
|
|
|
|
Datasource: GraphiteDatasource,
|
2016-01-14 05:35:31 -06:00
|
|
|
configView: configView,
|
|
|
|
annotationsQueryEditor: annotationsQueryEditor,
|
2016-01-14 07:37:04 -06:00
|
|
|
metricsQueryEditor: metricsQueryEditor,
|
|
|
|
metricsQueryOptions: metricsQueryOptions,
|
2016-02-01 16:24:08 -06:00
|
|
|
ConfigView: ConfigView
|
2016-01-09 12:03:03 -06:00
|
|
|
};
|
2015-08-16 13:52:30 -05:00
|
|
|
});
|