2015-08-18 13:57:58 +08:00
|
|
|
define([
|
|
|
|
'angular',
|
2015-09-05 04:10:56 +08:00
|
|
|
'./bucketAgg',
|
2015-09-05 15:05:09 +08:00
|
|
|
'./metricAgg',
|
2015-08-18 13:57:58 +08:00
|
|
|
],
|
|
|
|
function (angular) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var module = angular.module('grafana.directives');
|
|
|
|
|
2015-08-31 21:32:47 +08: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 13:57:58 +08:00
|
|
|
module.directive('annotationsQueryEditorElasticsearch', function() {
|
|
|
|
return {templateUrl: 'app/plugins/datasource/elasticsearch/partials/annotations.editor.html'};
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|