Problems: move tag filter to API query

This commit is contained in:
Alexander Zobnin
2020-07-20 17:29:33 +03:00
parent a2e978e451
commit a4931e36b0
3 changed files with 17 additions and 14 deletions

View File

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