1234567891011121314151617181920212223 |
- import { DataSourcePlugin } from '@grafana/data';
- import { ConfigEditor } from './ConfigEditor';
- import { QueryEditor } from './QueryEditor';
- import { TestInfoTab } from './TestInfoTab';
- import { TestDataDataSource } from './datasource';
- class TestDataAnnotationsQueryCtrl {
- annotation: any;
- constructor() {}
- static template = '<h2>Annotation scenario</h2>';
- }
- export const plugin = new DataSourcePlugin(TestDataDataSource)
- .setConfigEditor(ConfigEditor)
- .setQueryEditor(QueryEditor)
- .setAnnotationQueryCtrl(TestDataAnnotationsQueryCtrl)
- .addConfigPage({
- title: 'Setup',
- icon: 'list-ul',
- body: TestInfoTab,
- id: 'setup',
- });
|