directives.js 855 B

12345678910111213141516171819202122232425262728293031
  1. define([
  2. 'angular',
  3. './query_parameter_ctrl',
  4. ],
  5. function (angular) {
  6. 'use strict';
  7. var module = angular.module('grafana.directives');
  8. module.directive('metricQueryEditorCloudwatch', function() {
  9. return {controller: 'CloudWatchQueryCtrl', templateUrl: 'app/plugins/datasource/cloudwatch/partials/query.editor.html'};
  10. });
  11. module.directive('annotationsQueryEditorCloudwatch', function() {
  12. return {templateUrl: 'app/plugins/datasource/cloudwatch/partials/annotations.editor.html'};
  13. });
  14. module.directive('cloudwatchQueryParameter', function() {
  15. return {
  16. templateUrl: 'app/plugins/datasource/cloudwatch/partials/query.parameter.html',
  17. controller: 'CloudWatchQueryParameterCtrl',
  18. restrict: 'E',
  19. scope: {
  20. target: "=",
  21. datasourceName: "@",
  22. onChange: "&",
  23. }
  24. };
  25. });
  26. });