Added methods for getting trend from different api types. Added some

hacks for getting applications from different apis.
This commit is contained in:
Alexander Zobnin
2016-02-02 14:45:03 +03:00
parent 5f0f79da0f
commit fa10d76e2b
3 changed files with 34 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ function (angular, _, dateMath, utils, metricFunctions) {
// Use trends
var valueType = target.downsampleFunction ? target.downsampleFunction.value : "avg";
getHistory = self.zabbixAPI.getTrends(items, from, to).then(function(history) {
getHistory = self.zabbixAPI.getTrend(items, from, to).then(function(history) {
return self.queryProcessor.handleTrends(history, addHostName, valueType);
});
} else {