iss #60 - Added processing functions for downsampling: min, max, avg.

This commit is contained in:
Alexander Zobnin
2015-08-11 21:55:26 +03:00
parent 377ea8281f
commit 221d42c172
4 changed files with 67 additions and 18 deletions

View File

@@ -24,6 +24,16 @@ define([
$scope.itserviceList = [{name: "test"}];
$scope.updateITServiceList();
} else {
$scope.downsampleFunctionList = [
{name: "avg", value: "avg"},
{name: "min", value: "min"},
{name: "max", value: "max"}
];
// Set avg by default
if (!$scope.target.downsampleFunction) {
$scope.target.downsampleFunction = $scope.downsampleFunctionList[0];
}
$scope.metric = {
hostGroupList: [],
hostList: [{name: '*', visible_name: 'All'}],