Skip to content

Commit

Permalink
Update zabbixAPIConnector.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Sears committed Dec 19, 2019
1 parent cbd66ca commit e0ffdff
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ZabbixAPIConnector {
request(method, params) {
return this.tsdbRequest(method, params).then(response => {
const result = this.handleTsdbResponse(response);

return result;
});
}
Expand Down Expand Up @@ -146,7 +146,7 @@ export class ZabbixAPIConnector {

getApps(hostids) {
var params = {
output: 'extend',
output: ['extend'],
hostids: hostids
};

Expand Down Expand Up @@ -213,7 +213,7 @@ export class ZabbixAPIConnector {

getMacros(hostids) {
var params = {
output: 'extend',
output: ['extend'],
hostids: hostids
};

Expand All @@ -222,7 +222,7 @@ export class ZabbixAPIConnector {

getGlobalMacros() {
var params = {
output: 'extend',
output: ['extend'],
globalmacro: true
};

Expand Down Expand Up @@ -253,7 +253,7 @@ export class ZabbixAPIConnector {
let promises = _.map(grouped_items, (items, value_type) => {
let itemids = _.map(items, 'itemid');
let params = {
output: 'extend',
output: ['extend'],
history: value_type,
itemids: itemids,
sortfield: 'clock',
Expand Down Expand Up @@ -288,7 +288,7 @@ export class ZabbixAPIConnector {
let promises = _.map(grouped_items, (items, value_type) => {
let itemids = _.map(items, 'itemid');
let params = {
output: 'extend',
output: ['extend'],
trend: value_type,
itemids: itemids,
sortfield: 'clock',
Expand Down Expand Up @@ -330,7 +330,7 @@ export class ZabbixAPIConnector {

getITService(serviceids) {
var params = {
output: 'extend',
output: ['extend'],
serviceids: serviceids
};
return this.request('service.get', params);
Expand All @@ -349,7 +349,7 @@ export class ZabbixAPIConnector {
let {showTriggers, maintenance, timeFrom, timeTo} = options;

let params = {
output: 'extend',
output: ['extend'],
groupids: groupids,
hostids: hostids,
applicationids: applicationids,
Expand Down Expand Up @@ -387,7 +387,7 @@ export class ZabbixAPIConnector {

getEvents(objectids, timeFrom, timeTo, showEvents, limit) {
var params = {
output: 'extend',
output: ['extend'],
time_from: timeFrom,
time_till: timeTo,
objectids: objectids,
Expand All @@ -407,7 +407,7 @@ export class ZabbixAPIConnector {

getAcknowledges(eventids) {
var params = {
output: 'extend',
output: ['extend'],
eventids: eventids,
preservekeys: true,
select_acknowledges: 'extend',
Expand All @@ -423,7 +423,7 @@ export class ZabbixAPIConnector {

getExtendedEventData(eventids) {
var params = {
output: 'extend',
output: ['extend'],
eventids: eventids,
preservekeys: true,
select_acknowledges: 'extend',
Expand Down Expand Up @@ -452,7 +452,7 @@ export class ZabbixAPIConnector {

getAlerts(itemids, timeFrom, timeTo) {
var params = {
output: 'extend',
output: ['extend'],
itemids: itemids,
expandDescription: true,
expandData: true,
Expand All @@ -477,7 +477,7 @@ export class ZabbixAPIConnector {
getHostAlerts(hostids, applicationids, options) {
let {minSeverity, acknowledged, count, timeFrom, timeTo} = options;
let params = {
output: 'extend',
output: ['extend'],
hostids: hostids,
min_severity: minSeverity,
filter: { value: 1 },
Expand Down

0 comments on commit e0ffdff

Please sign in to comment.