Display resource name in Janitor Monkey notifications
truongvinhtien opened this issue · comments
Hi,
I would like to know how to add another column into the notification email or at least append the name into the resource id such as "resource_id":"resource_name". I have tried to modified the method getResourceDisplay in the BasicJanitorEmailBuilder.java:
protected String getResourceDisplay(Resource resource) {
String tag = "Name";
String result = resource.getId() + ":" + resource.getTag(tag);
return result;
}
but in the email it appear to be null:
Is there anyway to do this properly? Thank you very much!