Interface HealthCheck.Result

Enclosing interface:
HealthCheck

public static interface HealthCheck.Result
Response to a health check invocation.
  • Method Details

    • getCheck

      HealthCheck getCheck()
      The HealthCheck associated to this response.
    • getState

      HealthCheck.State getState()
      The state of the service.
    • getMessage

      Optional<String> getMessage()
      A message associated to the result, used to provide more information for unhealthy services.
    • getError

      Optional<Throwable> getError()
      An error associated to the result, used to provide the error associated to unhealthy services.
    • getDetails

      Map<String,Object> getDetails()
      A key/value combination of details.
      Returns:
      a non null details map (empty if no details)