module.ts 698 B

1234567891011121314151617181920212223242526
  1. import { GrafanaDatasource } from './datasource';
  2. import { QueryCtrl } from 'app/plugins/sdk';
  3. class GrafanaQueryCtrl extends QueryCtrl {
  4. static templateUrl = 'partials/query.editor.html';
  5. }
  6. class GrafanaAnnotationsQueryCtrl {
  7. annotation: any;
  8. types = [{ text: 'Dashboard', value: 'dashboard' }, { text: 'Tags', value: 'tags' }];
  9. constructor() {
  10. this.annotation.type = this.annotation.type || 'tags';
  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. };