module.ts 702 B

1234567891011121314151617181920212223242526272829
  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 = [
  9. {text: 'Dashboard', value: 'dashboard'},
  10. {text: 'Tags', value: 'tags'}
  11. ];
  12. constructor() {
  13. this.annotation.type = this.annotation.type || 'tags';
  14. this.annotation.limit = this.annotation.limit || 100;
  15. }
  16. static templateUrl = 'partials/annotations.editor.html';
  17. }
  18. export {
  19. GrafanaDatasource,
  20. GrafanaDatasource as Datasource,
  21. GrafanaQueryCtrl as QueryCtrl,
  22. GrafanaAnnotationsQueryCtrl as AnnotationsQueryCtrl,
  23. };