Skip to content

Commit

Permalink
Fix tags filter for problem history, closes #1592
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 22, 2023
1 parent 1605b76 commit 457894f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -617,7 +617,6 @@ export class ZabbixAPIConnector {
value: '1',
source: '0',
object: '0',
evaltype: '0',
sortfield: ['eventid'],
sortorder: 'DESC',
select_acknowledges: 'extend',
Expand All @@ -640,6 +639,10 @@ export class ZabbixAPIConnector {
params.value = value;
}

if (tags) {
params.tags = tags;
}

return this.request('event.get', params).then(utils.mustArray);
}

Expand Down

0 comments on commit 457894f

Please sign in to comment.