module.ts 382 B

123456789
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { ConfigEditor } from './ConfigEditor';
  3. import { AlertManagerDatasource } from './DataSource';
  4. // This is not actually a data source but since 7.1,
  5. // it is required to specify query types. Which we don't have.
  6. // @ts-ignore
  7. export const plugin = new DataSourcePlugin(AlertManagerDatasource).setConfigEditor(ConfigEditor);