Expand user macros in items, closes #212

This commit is contained in:
Alexander Zobnin
2017-02-11 20:15:57 +03:00
parent 94c24e9be4
commit 48018744bd
12 changed files with 288 additions and 8 deletions

View File

@@ -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) {