| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- define([
- 'angular',
- './datasource',
- './query_parameter_ctrl',
- ],
- function (angular, CloudWatchDatasource) {
- 'use strict';
- var module = angular.module('grafana.directives');
- module.directive('metricQueryEditorCloudwatch', function() {
- return {controller: 'CloudWatchQueryCtrl', templateUrl: 'app/plugins/datasource/cloudwatch/partials/query.editor.html'};
- });
- module.directive('annotationsQueryEditorCloudwatch', function() {
- return {templateUrl: 'app/plugins/datasource/cloudwatch/partials/annotations.editor.html'};
- });
- module.directive('cloudwatchQueryParameter', function() {
- return {
- templateUrl: 'app/plugins/datasource/cloudwatch/partials/query.parameter.html',
- controller: 'CloudWatchQueryParameterCtrl',
- restrict: 'E',
- scope: {
- target: "=",
- datasourceName: "@",
- onChange: "&",
- }
- };
- });
- function configView() {
- return {templateUrl: 'app/plugins/datasource/cloudwatch/partials/edit_view.html'};
- }
- return {
- Datasource: CloudWatchDatasource,
- configView: configView,
- };
- });
|