Interface HealthResult


  • public interface HealthResult

    Used to represent the output of a HealthIndicator.

    Since:
    1.0
    • Method Detail

      • getName

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

        io.micronaut.health.HealthStatus getStatus()
        Returns:
        The status of the result
      • getDetails

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

        static HealthResult.Builder builder​(java.lang.String name,
                                            io.micronaut.health.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​(java.lang.String name)
        Creates a builder to build a HealthResult.
        Parameters:
        name - The name of the result
        Returns:
        The builder