Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Display resource name in Janitor Monkey notifications #315

Open
truongvinhtien opened this issue Mar 27, 2018 · 0 comments
Open

Display resource name in Janitor Monkey notifications #315

truongvinhtien opened this issue Mar 27, 2018 · 0 comments

Comments

@truongvinhtien
Copy link

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:
image

Is there anyway to do this properly? Thank you very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant