From 822a689b82420236d3c9271ec086940bdcb988ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 31 Aug 2015 19:07:25 +0200 Subject: [PATCH] datasource(cloudwatch): began on polishing cloudwatch datasource, #684, #2445 --- .../datasource/cloudwatch/datasource.js | 1 + .../datasource/cloudwatch/directives.js | 13 + .../cloudwatch/partials/config.html | 26 +- .../cloudwatch/partials/query.editor.html | 464 +++++++++--------- 4 files changed, 256 insertions(+), 248 deletions(-) create mode 100644 public/app/plugins/datasource/cloudwatch/directives.js diff --git a/public/app/plugins/datasource/cloudwatch/datasource.js b/public/app/plugins/datasource/cloudwatch/datasource.js index 404c5deb72d..1dc87def301 100644 --- a/public/app/plugins/datasource/cloudwatch/datasource.js +++ b/public/app/plugins/datasource/cloudwatch/datasource.js @@ -5,6 +5,7 @@ define([ 'kbn', 'moment', './queryCtrl', + './directives', 'aws-sdk', ], function (angular, _, kbn) { diff --git a/public/app/plugins/datasource/cloudwatch/directives.js b/public/app/plugins/datasource/cloudwatch/directives.js new file mode 100644 index 00000000000..c758aa34e5c --- /dev/null +++ b/public/app/plugins/datasource/cloudwatch/directives.js @@ -0,0 +1,13 @@ +define([ + 'angular', +], +function (angular) { + 'use strict'; + + var module = angular.module('grafana.directives'); + + module.directive('metricQueryEditorCloudwatch', function() { + return {controller: 'CloudWatchQueryCtrl', templateUrl: 'app/plugins/datasource/cloudwatch/partials/query.editor.html'}; + }); + +}); diff --git a/public/app/plugins/datasource/cloudwatch/partials/config.html b/public/app/plugins/datasource/cloudwatch/partials/config.html index 6308fed2281..220e2efce7f 100644 --- a/public/app/plugins/datasource/cloudwatch/partials/config.html +++ b/public/app/plugins/datasource/cloudwatch/partials/config.html @@ -2,11 +2,11 @@
+
+
+
+