Fixed text metric query.

This commit is contained in:
Alexander Zobnin
2016-02-01 15:42:50 +03:00
parent 5ead2950b8
commit 2b91f417f4

View File

@@ -193,12 +193,9 @@ function (angular, _, dateMath, utils, metricFunctions) {
else if (target.mode === 2) {
// Find items by item names and perform queries
return this.zabbixAPI.itemFindQuery(groups, hosts, apps, "text")
return self.queryProcessor.build(groupFilter, hostFilter, appFilter, itemFilter)
.then(function(items) {
items = _.filter(items, function (item) {
return _.contains(itemnames, zabbixHelperSrv.expandItemName(item));
});
return self.zabbixAPI.getHistory(items, from, to).then(function(history) {
return self.zabbixCache.getHistory(items, from, to).then(function(history) {
return {
target: target.item.name,
datapoints: _.map(history, function (p) {