Problems: fix acknowledged filter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user