Add select events option

Added a option to select which events should be displayed, thus giving
the ability to have a trigger history, showing all the problem events as
well as the OK events.
This commit is contained in:
evandro-portugal
2016-01-20 15:17:54 -02:00
parent 96e9756109
commit b0b3e28017
3 changed files with 23 additions and 3 deletions

View File

@@ -574,7 +574,7 @@ function (angular, _) {
return this.performZabbixAPIRequest('service.getsla', params);
};
p.getTriggers = function(limit, sortfield, groupids, hostids, applicationids, name) {
p.getTriggers = function(limit, sortfield, groupids, hostids, applicationids, name, showevents) {
var params = {
output: 'extend',
expandDescription: true,
@@ -582,7 +582,7 @@ function (angular, _) {
monitored: true,
//only_true: true,
filter: {
value: 1
value: [0,1]
},
search : {
description: name
@@ -600,6 +600,8 @@ function (angular, _) {
params.sortfield = sortfield;
}
params.filter.value = showevents;
return this.performZabbixAPIRequest('trigger.get', params);
};