Interface HealthResult


@Introspected public interface HealthResult

Used to represent the output of a HealthIndicator.

Since:
1.0
Author:
James Kleeh
  • Method Details

    • getName

      String getName()
      Returns:
      The name associated with the details
    • getStatus

      HealthStatus getStatus()
      Returns:
      The status of the result
    • getDetails

      Object getDetails()
      Returns:
      Any data to be returned
    • builder

      static HealthResult.Builder builder(String name, HealthStatus status)
      Creates a builder to build a HealthResult.
      Parameters:
      name - The name of the result
      status - The status
      Returns:
      The builder
    • builder

      static HealthResult.Builder builder(String name)
      Creates a builder to build a HealthResult.
      Parameters:
      name - The name of the result
      Returns:
      The builder