2015-08-18 07:57:58 +02:00
|
|
|
define([
|
|
|
|
|
'angular',
|
2015-09-28 16:28:19 +02:00
|
|
|
'./bucket_agg',
|
|
|
|
|
'./metric_agg',
|
2015-08-18 07:57:58 +02:00
|
|
|
],
|
|
|
|
|
function (angular) {
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var module = angular.module('grafana.directives');
|
|
|
|
|
|
2015-08-31 09:32:47 -04:00
|
|
|
module.directive('metricQueryEditorElasticsearch', function() {
|
|
|
|
|
return {controller: 'ElasticQueryCtrl', templateUrl: 'app/plugins/datasource/elasticsearch/partials/query.editor.html'};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.directive('metricQueryOptionsElasticsearch', function() {
|
|
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/query.options.html'};
|
|
|
|
|
});
|
|
|
|
|
|
2015-08-18 07:57:58 +02:00
|
|
|
module.directive('annotationsQueryEditorElasticsearch', function() {
|
|
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/annotations.editor.html'};
|
|
|
|
|
});
|
|
|
|
|
|
2016-01-09 18:07:42 +01:00
|
|
|
module.directive('datasourceCustomSettingsViewElasticsearch', function() {
|
|
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/config.html'};
|
|
|
|
|
});
|
|
|
|
|
|
2015-09-05 15:41:04 +02:00
|
|
|
module.directive('elasticMetricAgg', function() {
|
|
|
|
|
return {
|
2015-12-11 18:20:53 +01:00
|
|
|
templateUrl: 'app/plugins/datasource/elasticsearch/partials/metric_agg.html',
|
2015-09-05 15:41:04 +02:00
|
|
|
controller: 'ElasticMetricAggCtrl',
|
|
|
|
|
restrict: 'E',
|
|
|
|
|
scope: {
|
|
|
|
|
target: "=",
|
|
|
|
|
index: "=",
|
|
|
|
|
onChange: "&",
|
|
|
|
|
getFields: "&",
|
2015-12-14 15:08:34 +01:00
|
|
|
esVersion: '='
|
2015-09-05 15:41:04 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.directive('elasticBucketAgg', function() {
|
|
|
|
|
return {
|
2015-12-11 18:20:53 +01:00
|
|
|
templateUrl: 'app/plugins/datasource/elasticsearch/partials/bucket_agg.html',
|
2015-09-05 15:41:04 +02:00
|
|
|
controller: 'ElasticBucketAggCtrl',
|
|
|
|
|
restrict: 'E',
|
|
|
|
|
scope: {
|
|
|
|
|
target: "=",
|
|
|
|
|
index: "=",
|
|
|
|
|
onChange: "&",
|
|
|
|
|
getFields: "&",
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
2015-08-18 07:57:58 +02:00
|
|
|
});
|