Problems: Able to select tags evaluation type, fixes #1600

This commit is contained in:
Alexander Zobnin
2023-08-01 15:53:13 +02:00
parent e33812427e
commit 7af3dca545
5 changed files with 33 additions and 4 deletions

View File

@@ -481,7 +481,7 @@ export class ZabbixAPIConnector {
}
getProblems(groupids, hostids, applicationids, options): Promise<ZBXProblem[]> {
const { timeFrom, timeTo, recent, severities, limit, acknowledged, tags } = options;
const { timeFrom, timeTo, recent, severities, limit, acknowledged, tags, evaltype } = options;
const params: any = {
output: 'extend',
@@ -492,7 +492,7 @@ export class ZabbixAPIConnector {
object: '0',
sortfield: ['eventid'],
sortorder: 'DESC',
evaltype: '2',
evaltype: '0',
// preservekeys: '1',
groupids,
hostids,
@@ -512,6 +512,10 @@ export class ZabbixAPIConnector {
params.tags = tags;
}
if (evaltype) {
params.evaltype = evaltype;
}
if (limit) {
params.limit = limit;
}