Commit c87b4256 by Carl Bergquist

Merge pull request #3542 from grafana/revert-3445-cloudwatch_sum_period

Revert "(cloudwatch) add "Divide Sum By Period" option"
parents d465c445 e320bd02
......@@ -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