Fixed triggers filtering by value (All, OK, Problems).

This commit is contained in:
Alexander Zobnin
2016-03-30 20:33:50 +03:00
parent 8e44587594
commit 14d8caf61e
4 changed files with 13 additions and 10 deletions

View File

@@ -343,6 +343,9 @@ export class ZabbixAPIDatasource {
var self = this;
var showOkEvents = annotation.showOkEvents ? [0, 1] : 1;
// Show all triggers
var showTriggers = [0, 1];
var buildQuery = self.queryProcessor.buildTriggerQuery(this.templateSrv.replace(annotation.group),
this.templateSrv.replace(annotation.host),
this.templateSrv.replace(annotation.application));
@@ -350,7 +353,7 @@ export class ZabbixAPIDatasource {
return self.zabbixAPI.getTriggers(query.groupids,
query.hostids,
query.applicationids,
true)
showTriggers)
.then(function(triggers) {
// Filter triggers by description