Show acknowledge author, fixes #1281

Also fix displaying time
This commit is contained in:
Alexander Zobnin
2023-03-21 14:00:17 +01:00
parent f1c3c57c9f
commit f7150f9281
5 changed files with 62 additions and 6 deletions

View File

@@ -875,6 +875,14 @@ export class ZabbixAPIConnector {
return this.request('valuemap.get', params);
}
getUsers() {
const params = {
output: ['userid', 'username', 'name', 'surname'],
};
return this.request('user.get', params);
}
}
function filterTriggersByAcknowledge(triggers, acknowledged) {

View File

@@ -47,6 +47,7 @@ const REQUESTS_TO_PROXYFY = [
'getScripts',
'getValueMappings',
'getSLAList',
'getUsers',
];
const REQUESTS_TO_CACHE = [
@@ -61,6 +62,7 @@ const REQUESTS_TO_CACHE = [
'getProxies',
'getValueMappings',
'getSLAList',
'getUsers',
];
const REQUESTS_TO_BIND = [
@@ -84,6 +86,7 @@ const REQUESTS_TO_BIND = [
'executeScript',
'getValueMappings',
'getSLAList',
'getUsers',
];
export class Zabbix implements ZabbixConnector {
@@ -113,6 +116,7 @@ export class Zabbix implements ZabbixConnector {
getUserMacros: (hostmacroids) => Promise<any>;
getValueMappings: () => Promise<any>;
getSLAList: () => Promise<any>;
getUsers: () => Promise<any>;
constructor(options) {
const {