Merge branch 'feature-improve_annotations' into develop

This commit is contained in:
Alexander Zobnin
2015-08-16 15:10:12 +03:00
2 changed files with 25 additions and 7 deletions

View File

@@ -309,11 +309,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 = templateSrv.replace(annotation.host);
}
else if (annotation.group) {
params.group = templateSrv.replace(annotation.group);
}
return this.zabbixAPI.performZabbixAPIRequest('trigger.get', params)
.then(function (result) {