module.tsx 685 B

12345678910111213141516
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { ConfigEditor } from './components/ConfigEditor';
  3. import LogsCheatSheet from './components/LogsCheatSheet';
  4. import { MetaInspector } from './components/MetaInspector';
  5. import { PanelQueryEditor } from './components/PanelQueryEditor';
  6. import { CloudWatchDatasource } from './datasource';
  7. import { CloudWatchJsonData, CloudWatchQuery } from './types';
  8. export const plugin = new DataSourcePlugin<CloudWatchDatasource, CloudWatchQuery, CloudWatchJsonData>(
  9. CloudWatchDatasource
  10. )
  11. .setQueryEditorHelp(LogsCheatSheet)
  12. .setConfigEditor(ConfigEditor)
  13. .setQueryEditor(PanelQueryEditor)
  14. .setMetadataInspector(MetaInspector);