2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2017-12-20 12:33:33 +01:00
|
|
|
import { ElasticDatasource } from './datasource';
|
2019-10-25 16:43:20 +02:00
|
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
2020-12-04 14:29:40 +00:00
|
|
|
import { QueryEditor } from './components/QueryEditor';
|
2016-02-03 16:31:07 +01:00
|
|
|
|
|
|
|
|
class ElasticAnnotationsQueryCtrl {
|
2017-12-20 12:33:33 +01:00
|
|
|
static templateUrl = 'partials/annotations.editor.html';
|
2016-02-03 16:31:07 +01:00
|
|
|
}
|
|
|
|
|
|
2019-06-24 22:15:03 +02:00
|
|
|
export const plugin = new DataSourcePlugin(ElasticDatasource)
|
2020-12-04 14:29:40 +00:00
|
|
|
.setQueryEditor(QueryEditor)
|
2019-10-25 16:43:20 +02:00
|
|
|
.setConfigEditor(ConfigEditor)
|
2019-06-24 22:15:03 +02:00
|
|
|
.setAnnotationQueryCtrl(ElasticAnnotationsQueryCtrl);
|