Class HealthCheckResponse

java.lang.Object
org.gcube.common.health.api.response.HealthCheckResponse

public class HealthCheckResponse extends Object
  • Field Details

    • name

      protected String name
    • status

      protected Status status
    • errorMessage

      protected String errorMessage
    • info

      protected String info
    • data

      protected Map<String,Object> data
      Structured data of the check (values are strings, numbers, booleans or lists of them), absent when there is none.
  • Constructor Details

    • HealthCheckResponse

      protected HealthCheckResponse()
  • Method Details

    • builder

      public static HealthCheckResponseBuilder builder(String checkName)
    • getStatus

      public Status getStatus()
    • getName

      public String getName()
    • getErrorMessage

      public String getErrorMessage()
    • getInfo

      public String getInfo()
    • getData

      public Map<String,Object> getData()
      Returns the structured data of the check, e.g. the Contexts a service runs in.
      Returns:
      the data, or null when the check gives none