Fix tags filter for problem history, closes #1592

This commit is contained in:
Alexander Zobnin
2023-03-22 11:00:39 +01:00
parent 1605b764c2
commit 457894f7c0

View File

@@ -608,7 +608,7 @@ export class ZabbixAPIConnector {
}
getEventsHistory(groupids, hostids, applicationids, options) {
const { timeFrom, timeTo, severities, limit, value } = options;
const { timeFrom, timeTo, severities, limit, value, tags } = options;
const params: any = {
output: 'extend',
@@ -617,7 +617,6 @@ export class ZabbixAPIConnector {
value: '1',
source: '0',
object: '0',
evaltype: '0',
sortfield: ['eventid'],
sortorder: 'DESC',
select_acknowledges: 'extend',
@@ -640,6 +639,10 @@ export class ZabbixAPIConnector {
params.value = value;
}
if (tags) {
params.tags = tags;
}
return this.request('event.get', params).then(utils.mustArray);
}