Problems: fix acknowledged filter

This commit is contained in:
Alexander Zobnin
2020-05-22 11:29:50 +03:00
parent d886afb3b9
commit c91d5b1d99
3 changed files with 10 additions and 2 deletions

View File

@@ -389,7 +389,7 @@ export class ZabbixAPIConnector {
}
getProblems(groupids, hostids, applicationids, options): Promise<ZBXProblem[]> {
const { timeFrom, timeTo, recent, severities, limit } = options;
const { timeFrom, timeTo, recent, severities, limit, acknowledged } = options;
const params: any = {
output: 'extend',
@@ -412,6 +412,10 @@ export class ZabbixAPIConnector {
params.severities = severities;
}
if (acknowledged !== undefined) {
params.acknowledged = acknowledged;
}
if (limit) {
params.limit = limit;
}