Commit e320bd02 by Carl Bergquist

Revert "(cloudwatch) add "Divide Sum By Period" option"

parent d465c445
......@@ -330,9 +330,6 @@ function (angular, _, moment, dateMath) {
dps.push([null, lastTimestamp + periodMs]);
}
lastTimestamp = timestamp;
if (options.divideSumByPeriod && stat === 'Sum') {
dp[stat] = dp[stat] / options.period;
}
dps.push([dp[stat], timestamp]);
});
......
......@@ -52,9 +52,6 @@
<li>
<input type="text" class="input-xlarge tight-form-input" ng-model="target.alias" spellcheck='false' ng-model-onblur ng-change="onChange()">
</li>
<li class="tight-form-item query-keyword">
Sum / Period <editor-checkbox text="" model="target.divideSumByPeriod" change="onChange()"></editor-checkbox>
</li>
</ul>
<div class="clearfix"></div>
</div>
......
......@@ -10,7 +10,6 @@ function (angular, _) {
module.controller('CloudWatchQueryCtrl', function($scope) {
$scope.init = function() {
$scope.target.divideSumByPeriod = $scope.target.divideSumByPeriod || false;
$scope.aliasSyntax = '{{metric}} {{stat}} {{namespace}} {{region}} {{<dimension name>}}';
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment