2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2019-08-06 18:17:12 +02:00
|
|
|
import { TestDataDataSource } from './datasource';
|
2019-05-13 22:55:49 -07:00
|
|
|
import { TestInfoTab } from './TestInfoTab';
|
2019-05-02 21:20:31 -07:00
|
|
|
import { ConfigEditor } from './ConfigEditor';
|
2020-10-14 13:08:35 +03:00
|
|
|
import { QueryEditor } from './QueryEditor';
|
2021-03-23 20:24:08 +03:00
|
|
|
import { LiveMeasurementsSupport } from 'app/features/live/measurements/measurementsSupport';
|
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-08-06 18:17:12 +02:00
|
|
|
export const plugin = new DataSourcePlugin(TestDataDataSource)
|
2019-05-02 21:20:31 -07:00
|
|
|
.setConfigEditor(ConfigEditor)
|
2020-10-14 13:08:35 +03:00
|
|
|
.setQueryEditor(QueryEditor)
|
2021-03-23 20:24:08 +03:00
|
|
|
.setChannelSupport(new LiveMeasurementsSupport())
|
2019-05-13 22:55:49 -07:00
|
|
|
.setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl)
|
|
|
|
|
.addConfigPage({
|
|
|
|
|
title: 'Setup',
|
2020-04-12 22:20:02 +02:00
|
|
|
icon: 'list-ul',
|
2019-05-13 22:55:49 -07:00
|
|
|
body: TestInfoTab,
|
|
|
|
|
id: 'setup',
|
|
|
|
|
});
|