2017-12-20 05:33:33 -06:00
|
|
|
import OpenTsDatasource from './datasource';
|
|
|
|
import { OpenTsQueryCtrl } from './query_ctrl';
|
2019-12-03 01:56:05 -06:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
|
|
|
import { ConfigEditor } from './components/ConfigEditor';
|
2016-02-03 11:25:39 -06:00
|
|
|
|
2016-03-08 09:47:36 -06:00
|
|
|
class AnnotationsQueryCtrl {
|
2017-12-20 05:33:33 -06:00
|
|
|
static templateUrl = 'partials/annotations.editor.html';
|
2016-03-08 09:47:36 -06:00
|
|
|
}
|
|
|
|
|
2019-12-03 01:56:05 -06:00
|
|
|
export const plugin = new DataSourcePlugin(OpenTsDatasource)
|
|
|
|
.setQueryCtrl(OpenTsQueryCtrl)
|
|
|
|
.setConfigEditor(ConfigEditor)
|
|
|
|
.setAnnotationQueryCtrl(AnnotationsQueryCtrl);
|