iss #61 - Support templated variables in annotations.

This commit is contained in:
Alexander Zobnin
2015-08-16 13:48:02 +03:00
parent ad83ecfe69
commit 3793de5ed9

View File

@@ -307,10 +307,10 @@ function (angular, _, kbn) {
expandDescription: true expandDescription: true
}; };
if (annotation.host) { if (annotation.host) {
params.host = annotation.host; params.host = templateSrv.replace(annotation.host);
} }
else if (annotation.group) { else if (annotation.group) {
params.group = annotation.group; params.group = templateSrv.replace(annotation.group);
} }
return this.zabbixAPI.performZabbixAPIRequest('trigger.get', params) return this.zabbixAPI.performZabbixAPIRequest('trigger.get', params)