2015-08-17 02:52:30 +08:00
|
|
|
define([
|
2016-01-10 02:03:03 +08:00
|
|
|
'./datasource',
|
2015-08-17 02:52:30 +08:00
|
|
|
],
|
2016-01-14 21:37:04 +08:00
|
|
|
function (GraphiteDatasource) {
|
2015-08-17 02:52:30 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-01-14 21:37:04 +08:00
|
|
|
function metricsQueryEditor() {
|
2016-01-26 04:09:37 +08:00
|
|
|
return {
|
|
|
|
|
controller: 'GraphiteQueryCtrl',
|
2016-02-02 01:19:02 +08:00
|
|
|
templateUrl: 'public/app/plugins/datasource/graphite/partials/query.editor.html'
|
2016-01-26 04:09:37 +08:00
|
|
|
};
|
2016-01-14 21:37:04 +08:00
|
|
|
}
|
2015-08-17 02:52:30 +08:00
|
|
|
|
2016-01-14 21:37:04 +08:00
|
|
|
function metricsQueryOptions() {
|
2016-02-02 01:19:02 +08:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/query.options.html'};
|
2016-01-14 21:37:04 +08:00
|
|
|
}
|
2015-08-17 02:52:30 +08:00
|
|
|
|
2016-01-14 19:35:31 +08:00
|
|
|
function annotationsQueryEditor() {
|
2016-02-02 01:19:02 +08:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/annotations.editor.html'};
|
2016-01-14 19:35:31 +08:00
|
|
|
}
|
2015-08-17 02:52:30 +08:00
|
|
|
|
2016-01-14 19:35:31 +08:00
|
|
|
function configView() {
|
2016-02-02 01:19:02 +08:00
|
|
|
return {templateUrl: 'public/app/plugins/datasource/graphite/partials/config.html'};
|
2016-01-14 19:35:31 +08:00
|
|
|
}
|
2016-01-10 06:34:20 +08:00
|
|
|
|
2016-01-10 02:03:03 +08:00
|
|
|
return {
|
|
|
|
|
Datasource: GraphiteDatasource,
|
2016-01-14 19:35:31 +08:00
|
|
|
configView: configView,
|
|
|
|
|
annotationsQueryEditor: annotationsQueryEditor,
|
2016-01-14 21:37:04 +08:00
|
|
|
metricsQueryEditor: metricsQueryEditor,
|
|
|
|
|
metricsQueryOptions: metricsQueryOptions,
|
2016-01-10 02:03:03 +08:00
|
|
|
};
|
2015-08-17 02:52:30 +08:00
|
|
|
});
|