| 1234567891011121314151617181920212223242526272829 |
- ///<reference path="../../../headers/common.d.ts" />
- import angular from 'angular';
- import {GrafanaDatasource} from './datasource';
- import {QueryCtrl} from 'app/plugins/sdk';
- class GrafanaQueryCtrl extends QueryCtrl {
- static templateUrl = 'partials/query.editor.html';
- }
- class GrafanaAnnotationsQueryCtrl {
- annotation: any;
- constructor() {
- this.annotation.type = this.annotation.type || 'alert';
- this.annotation.limit = this.annotation.limit || 100;
- }
- static templateUrl = 'partials/annotations.editor.html';
- }
- export {
- GrafanaDatasource,
- GrafanaDatasource as Datasource,
- GrafanaQueryCtrl as QueryCtrl,
- GrafanaAnnotationsQueryCtrl as AnnotationsQueryCtrl,
- };
|