problem panels: get problem actions

This commit is contained in:
Alexander Zobnin
2018-12-08 17:56:31 +03:00
parent 9e4bf88195
commit 198110e2af
4 changed files with 53 additions and 27 deletions

View File

@@ -398,6 +398,16 @@ export class ZabbixAPIConnector {
});
}
getEventAlerts(eventids) {
const params = {
eventids: eventids,
output: 'extend',
selectUsers: true,
};
return this.request('alert.get', params);
}
getAlerts(itemids, timeFrom, timeTo) {
var params = {
output: 'extend',

View File

@@ -8,7 +8,8 @@ import { ZabbixNotImplemented } from './connectors/dbConnector';
const REQUESTS_TO_PROXYFY = [
'getHistory', 'getTrend', 'getGroups', 'getHosts', 'getApps', 'getItems', 'getMacros', 'getItemsByIDs',
'getEvents', 'getAlerts', 'getHostAlerts', 'getAcknowledges', 'getITService', 'getSLA', 'getVersion', 'getProxies'
'getEvents', 'getAlerts', 'getHostAlerts', 'getAcknowledges', 'getITService', 'getSLA', 'getVersion', 'getProxies',
'getEventAlerts'
];
const REQUESTS_TO_CACHE = [
@@ -17,7 +18,7 @@ const REQUESTS_TO_CACHE = [
const REQUESTS_TO_BIND = [
'getHistory', 'getTrend', 'getMacros', 'getItemsByIDs', 'getEvents', 'getAlerts', 'getHostAlerts',
'getAcknowledges', 'getITService', 'getVersion', 'login', 'acknowledgeEvent', 'getProxies'
'getAcknowledges', 'getITService', 'getVersion', 'login', 'acknowledgeEvent', 'getProxies', 'getEventAlerts'
];
export class Zabbix {