module.ts 693 B

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