2019-04-04 18:30:15 +02:00
|
|
|
import { DataSourcePlugin } from '@grafana/ui';
|
2017-12-20 12:33:33 +01:00
|
|
|
import { TestDataDatasource } from './datasource';
|
|
|
|
|
import { TestDataQueryCtrl } from './query_ctrl';
|
2016-09-27 14:39:51 +02:00
|
|
|
|
|
|
|
|
class TestDataAnnotationsQueryCtrl {
|
|
|
|
|
annotation: any;
|
2017-12-19 16:06:54 +01:00
|
|
|
constructor() {}
|
2018-10-02 18:50:30 +02:00
|
|
|
static template = '<h2>Annotation scenario</h2>';
|
2016-09-27 14:39:51 +02:00
|
|
|
}
|
|
|
|
|
|
2019-04-04 18:30:15 +02:00
|
|
|
export const plugin = new DataSourcePlugin(TestDataDatasource)
|
|
|
|
|
.setQueryCtrl(TestDataQueryCtrl)
|
|
|
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl);
|