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

@@ -425,6 +425,10 @@ export class ZabbixDatasource {
limit: target.options?.limit,
};
if (target.options?.acknowledged === 0 || target.options?.acknowledged === 1) {
problemsOptions.acknowledged = target.options?.acknowledged ? true : false;
}
if (target.options?.minSeverity) {
const severities = [0, 1, 2, 3, 4, 5].filter(v => v >= target.options?.minSeverity);
problemsOptions.severities = severities;