http://jira.hyperic.com/browse/HHQ-3963
Not sure if this should be a feature request or a request to update the documentation.
According to http://support.hyperic.com/display/DOC/Tailoring+Alert+Notification+Templates
The object 'action' is available when rendering gsp templates. This is not completely accurate, it's only available when rendering the text or email gsps. The subject.gsp excludes this variable. It would be easy to add though, see EmailAction:
private String createSubject(AlertDefinitionInterface alertdef,
AlertInterface alert, Resource resource,
String status) {
Map params = new HashMap();
params.put("resource", resource);
params.put("alertDef", alertdef);
params.put("alert", alert);
params.put("status", status);
params.put("isSms", new Boolean(isSms()));
return renderTemplate("subject.gsp", params);
}
When this method is called the ActionExecutionInfo is available, so we would just need to modify the method signature and pass it as part of the parameters.
Anonymous