iss #61 - Improved annotations editor. Able to specify Group and Host for triggers search.

This commit is contained in:
Alexander Zobnin
2015-08-15 22:32:14 +03:00
parent 12a3a2b6b0
commit ad83ecfe69
2 changed files with 15 additions and 15 deletions

View File

@@ -301,11 +301,17 @@ function (angular, _, kbn) {
var params = {
output: ['triggerid', 'description'],
search: {
'description': annotation.query
'description': annotation.trigger
},
searchWildcardsEnabled: true,
expandDescription: true
};
if (annotation.host) {
params.host = annotation.host;
}
else if (annotation.group) {
params.group = annotation.group;
}
return this.zabbixAPI.performZabbixAPIRequest('trigger.get', params)
.then(function (result) {