module.js 752 B

123456789101112131415161718192021222324252627
  1. define([
  2. './datasource',
  3. './query_parameter_ctrl',
  4. './query_ctrl',
  5. ],
  6. function (CloudWatchDatasource) {
  7. 'use strict';
  8. function metricsQueryEditor() {
  9. return {controller: 'CloudWatchQueryCtrl', templateUrl: 'public/app/plugins/datasource/cloudwatch/partials/query.editor.html'};
  10. }
  11. function annotationsQueryEditor() {
  12. return {templateUrl: 'public/app/plugins/datasource/cloudwatch/partials/annotations.editor.html'};
  13. }
  14. function configView() {
  15. return {templateUrl: 'public/app/plugins/datasource/cloudwatch/partials/edit_view.html'};
  16. }
  17. return {
  18. Datasource: CloudWatchDatasource,
  19. configView: configView,
  20. annotationsQueryEditor: annotationsQueryEditor,
  21. metricsQueryEditor: metricsQueryEditor,
  22. };
  23. });