Fix not-templated metric request.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user