Expand user macros in items, closes #212
This commit is contained in:
20
dist/datasource-zabbix/zabbixAPI.service.js
vendored
20
dist/datasource-zabbix/zabbixAPI.service.js
vendored
@@ -177,6 +177,26 @@ System.register(['angular', 'lodash', './utils', './zabbixAPICore.service'], fun
|
||||
return items;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'getMacros',
|
||||
value: function getMacros(hostids) {
|
||||
var params = {
|
||||
output: 'extend',
|
||||
hostids: hostids
|
||||
};
|
||||
|
||||
return this.request('usermacro.get', params);
|
||||
}
|
||||
}, {
|
||||
key: 'getGlobalMacros',
|
||||
value: function getGlobalMacros() {
|
||||
var params = {
|
||||
output: 'extend',
|
||||
globalmacro: true
|
||||
};
|
||||
|
||||
return this.request('usermacro.get', params);
|
||||
}
|
||||
}, {
|
||||
key: 'getLastValue',
|
||||
value: function getLastValue(itemid) {
|
||||
|
||||
Reference in New Issue
Block a user