module.ts 662 B

12345678910111213141516171819202122232425262728
  1. ///<reference path="../../../headers/common.d.ts" />
  2. import {GrafanaDatasource} from './datasource';
  3. import {QueryCtrl} from 'app/plugins/sdk';
  4. class GrafanaQueryCtrl extends QueryCtrl {
  5. static templateUrl = 'partials/query.editor.html';
  6. }
  7. class GrafanaAnnotationsQueryCtrl {
  8. annotation: any;
  9. constructor() {
  10. this.annotation.type = this.annotation.type || 'alert';
  11. this.annotation.limit = this.annotation.limit || 100;
  12. }
  13. static templateUrl = 'partials/annotations.editor.html';
  14. }
  15. export {
  16. GrafanaDatasource,
  17. GrafanaDatasource as Datasource,
  18. GrafanaQueryCtrl as QueryCtrl,
  19. GrafanaAnnotationsQueryCtrl as AnnotationsQueryCtrl,
  20. };