iss #61 - Support templated variables in annotations.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user