module.ts 499 B

1234567891011121314
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { QueryEditor } from './components/QueryEditor';
  3. import { ConfigEditor } from './configuration/ConfigEditor';
  4. import { ElasticDatasource } from './datasource';
  5. class ElasticAnnotationsQueryCtrl {
  6. static templateUrl = 'partials/annotations.editor.html';
  7. }
  8. export const plugin = new DataSourcePlugin(ElasticDatasource)
  9. .setQueryEditor(QueryEditor)
  10. .setConfigEditor(ConfigEditor)
  11. .setAnnotationQueryCtrl(ElasticAnnotationsQueryCtrl);