2016-01-09 18:07:42 +01:00
|
|
|
define([
|
|
|
|
|
'./datasource',
|
|
|
|
|
'./edit_view',
|
|
|
|
|
'./bucket_agg',
|
|
|
|
|
'./metric_agg',
|
|
|
|
|
],
|
2016-01-14 14:37:04 +01:00
|
|
|
function (ElasticDatasource, editView) {
|
2016-01-09 18:07:42 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
2016-01-14 14:37:04 +01:00
|
|
|
function metricsQueryEditor() {
|
2016-01-14 12:35:31 +01:00
|
|
|
return {controller: 'ElasticQueryCtrl', templateUrl: 'app/plugins/datasource/elasticsearch/partials/query.editor.html'};
|
2016-01-14 14:37:04 +01:00
|
|
|
}
|
2016-01-14 12:35:31 +01:00
|
|
|
|
2016-01-14 14:37:04 +01:00
|
|
|
function metricsQueryOptions() {
|
2016-01-14 12:35:31 +01:00
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/query.options.html'};
|
2016-01-14 14:37:04 +01:00
|
|
|
}
|
2016-01-14 12:35:31 +01:00
|
|
|
|
|
|
|
|
function annotationsQueryEditor() {
|
|
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/annotations.editor.html'};
|
|
|
|
|
}
|
2016-01-09 18:07:42 +01:00
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
Datasource: ElasticDatasource,
|
2016-01-14 11:21:56 +01:00
|
|
|
configView: editView.default,
|
2016-01-14 12:35:31 +01:00
|
|
|
annotationsQueryEditor: annotationsQueryEditor,
|
2016-01-14 14:37:04 +01:00
|
|
|
metricsQueryEditor: metricsQueryEditor,
|
|
|
|
|
metricsQueryOptions: metricsQueryOptions,
|
2016-01-09 18:07:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
});
|