mirror of https://github.com/grafana/grafana
began work on ES annotation datasource, #201
parent
a1772d26b5
commit
4e47447dec
@ -0,0 +1 @@ |
||||
<h2>Elasticsearch</h2> |
@ -0,0 +1,32 @@ |
||||
define([ |
||||
'angular', |
||||
'underscore', |
||||
'jquery', |
||||
'config', |
||||
'kbn', |
||||
'moment' |
||||
], |
||||
function (angular, _, $, config, kbn, moment) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('grafana.services'); |
||||
|
||||
module.factory('ElasticDatasource', function($q, $http) { |
||||
|
||||
function ElasticDatasource(datasource) { |
||||
this.type = 'elastic'; |
||||
this.basicAuth = datasource.basicAuth; |
||||
this.url = datasource.url; |
||||
this.name = datasource.name; |
||||
this.supportAnnotations = true; |
||||
this.annotationEditorSrc = 'app/partials/elasticsearch/annotation_editor.html'; |
||||
} |
||||
|
||||
ElasticDatasource.prototype.annotationQuery = function(annotation, filterSrv, rangeUnparsed) { |
||||
}; |
||||
|
||||
return ElasticDatasource; |
||||
|
||||
}); |
||||
|
||||
}); |
Loading…
Reference in new issue