Fix not-templated metric request.

This commit is contained in:
Alexander Zobnin
2015-05-28 23:27:07 +03:00
parent a1fb1f7593
commit 8c59c87b22

View File

@@ -42,8 +42,14 @@ function (angular, _, kbn) {
if (!target.item.templated) { if (!target.item.templated) {
// Perform request and then handle result // Perform request and then handle result
return this.performTimeSeriesQuery(target.item, from, to).then(_.partial( var item = [target.item];
this.handleZabbixAPIResponse, target.alias)); var alias = [{
itemid: target.item.itemid,
key_: '',
name: target.alias
}];
return this.performTimeSeriesQuery(item, from, to).then(_.partial(
this.handleZabbixAPIResponse, alias));
} else { } else {
// Handle templated target // Handle templated target