2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2019-08-19 17:35:44 -04:00
|
|
|
import { AzureMonitorQueryCtrl } from './query_ctrl';
|
|
|
|
|
import Datasource from './datasource';
|
2019-11-06 09:29:07 -05:00
|
|
|
import { ConfigEditor } from './components/ConfigEditor';
|
2019-08-19 17:35:44 -04:00
|
|
|
import { AzureMonitorAnnotationsQueryCtrl } from './annotations_query_ctrl';
|
2019-11-06 09:29:07 -05:00
|
|
|
import { AzureMonitorQuery, AzureDataSourceJsonData } from './types';
|
2019-08-19 17:35:44 -04:00
|
|
|
|
2019-11-06 09:29:07 -05:00
|
|
|
export const plugin = new DataSourcePlugin<Datasource, AzureMonitorQuery, AzureDataSourceJsonData>(Datasource)
|
2019-08-19 17:35:44 -04:00
|
|
|
.setConfigEditor(ConfigEditor)
|
|
|
|
|
.setQueryCtrl(AzureMonitorQueryCtrl)
|
|
|
|
|
.setAnnotationQueryCtrl(AzureMonitorAnnotationsQueryCtrl);
|