module.ts 471 B

12345678910
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { ConfigEditor } from './components/ConfigEditor';
  3. import AzureMonitorQueryEditor from './components/QueryEditor';
  4. import Datasource from './datasource';
  5. import { AzureMonitorQuery, AzureDataSourceJsonData } from './types';
  6. export const plugin = new DataSourcePlugin<Datasource, AzureMonitorQuery, AzureDataSourceJsonData>(Datasource)
  7. .setConfigEditor(ConfigEditor)
  8. .setQueryEditor(AzureMonitorQueryEditor);