mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
17 lines
629 B
TypeScript
17 lines
629 B
TypeScript
|
|
import { DataSourcePlugin } from '@grafana/data';
|
||
|
|
import { ConfigEditor } from './components/ConfigEditor';
|
||
|
|
import { QueryEditor } from './components/QueryEditor';
|
||
|
|
import CloudWatchDatasource from './datasource';
|
||
|
|
import { CloudWatchJsonData, CloudWatchQuery } from './types';
|
||
|
|
|
||
|
|
class CloudWatchAnnotationsQueryCtrl {
|
||
|
|
static templateUrl = 'partials/annotations.editor.html';
|
||
|
|
}
|
||
|
|
|
||
|
|
export const plugin = new DataSourcePlugin<CloudWatchDatasource, CloudWatchQuery, CloudWatchJsonData>(
|
||
|
|
CloudWatchDatasource
|
||
|
|
)
|
||
|
|
.setConfigEditor(ConfigEditor)
|
||
|
|
.setQueryEditor(QueryEditor)
|
||
|
|
.setAnnotationQueryCtrl(CloudWatchAnnotationsQueryCtrl);
|