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

Display resource name in Janitor Monkey notifications #315

Open

Description

@truongvinhtien

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions