Skip to content

Enhancement: Expose message property in Dropwizard health functionality #8745

@rorytorneymf

Description

@rorytorneymf

Registered Health Checks are returned on localhost:8081/healthcheck, and include a message property:

{
  "worker-alive": {
    "healthy":false,
    "message":"I am not alive failure count =2",
    "duration":0,
    "timestamp":"2024-05-08T11:26:15.079Z"
  }
}

When I configure that health check using the Health functionality, that health check is returned on localhost:8080/health-check?name=all&type=ALIVE, however, it does not include the message property:

[
  {
    "name":"worker-alive",
    "healthy":false,
    "type":"ALIVE",
    "critical":true
  }
]

I believe the response is generated via these classes:

Is there a way to make the response from localhost:8080/health-check?name=all&type=ALIVE include the message property?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurestaleStale issue or pull request which will be closed soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions