mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
14 lines
498 B
TypeScript
14 lines
498 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { ElasticDatasource } from './datasource';
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
|
import { QueryEditor } from './components/QueryEditor';
|
|
|
|
class ElasticAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(ElasticDatasource)
|
|
.setQueryEditor(QueryEditor)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setAnnotationQueryCtrl(ElasticAnnotationsQueryCtrl);
|