mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
28 lines
562 B
JavaScript
28 lines
562 B
JavaScript
define([
|
|
'angular',
|
|
'lodash',
|
|
],
|
|
function (angular, _) {
|
|
'use strict';
|
|
|
|
var module = angular.module('grafana.controllers');
|
|
|
|
module.controller('CloudWatchQueryCtrl', function($scope) {
|
|
|
|
$scope.init = function() {
|
|
$scope.aliasSyntax = '{{metric}} {{stat}} {{namespace}} {{region}} {{<dimension name>}}';
|
|
};
|
|
|
|
$scope.refreshMetricData = function() {
|
|
if (!_.isEqual($scope.oldTarget, $scope.target)) {
|
|
$scope.oldTarget = angular.copy($scope.target);
|
|
$scope.get_data();
|
|
}
|
|
};
|
|
|
|
$scope.init();
|
|
|
|
});
|
|
|
|
});
|