Added initial metric functions processing.

This commit is contained in:
Alexander Zobnin
2016-01-26 23:42:54 +03:00
parent 63729a5904
commit 2d86c8a578
4 changed files with 41 additions and 0 deletions

View File

@@ -153,6 +153,15 @@ function (angular, _, dateMath, utils) {
timeseries.datapoints = dp;
}
var functions = _.map(target.functions, function(func) {
return func.bindFunction(DataProcessingService.metricFunctions);
});
if (functions.length) {
//console.log(functions);
dp = functions[0](dp);
timeseries.datapoints = dp;
}
return timeseries;
});
});