mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Revert "(cloudwatch) add "Divide Sum By Period" option"
This commit is contained in:
parent
d465c445fc
commit
e320bd025f
@ -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>}}';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user