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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user