Fix tags filter for problem history, closes #1592
This commit is contained in:
@@ -608,7 +608,7 @@ export class ZabbixAPIConnector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getEventsHistory(groupids, hostids, applicationids, options) {
|
getEventsHistory(groupids, hostids, applicationids, options) {
|
||||||
const { timeFrom, timeTo, severities, limit, value } = options;
|
const { timeFrom, timeTo, severities, limit, value, tags } = options;
|
||||||
|
|
||||||
const params: any = {
|
const params: any = {
|
||||||
output: 'extend',
|
output: 'extend',
|
||||||
@@ -617,7 +617,6 @@ export class ZabbixAPIConnector {
|
|||||||
value: '1',
|
value: '1',
|
||||||
source: '0',
|
source: '0',
|
||||||
object: '0',
|
object: '0',
|
||||||
evaltype: '0',
|
|
||||||
sortfield: ['eventid'],
|
sortfield: ['eventid'],
|
||||||
sortorder: 'DESC',
|
sortorder: 'DESC',
|
||||||
select_acknowledges: 'extend',
|
select_acknowledges: 'extend',
|
||||||
@@ -640,6 +639,10 @@ export class ZabbixAPIConnector {
|
|||||||
params.value = value;
|
params.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tags) {
|
||||||
|
params.tags = tags;
|
||||||
|
}
|
||||||
|
|
||||||
return this.request('event.get', params).then(utils.mustArray);
|
return this.request('event.get', params).then(utils.mustArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user