Class HealthCheckResponseBuilder.ErrorPart
java.lang.Object
org.gcube.common.health.api.response.HealthCheckResponseBuilder.ErrorPart
- Enclosing class:
- HealthCheckResponseBuilder
-
Method Summary
Modifier and TypeMethodDescriptionSays why the check is degraded or down.
-
Method Details
-
error
Says why the check is degraded or down. The health is public: the message is a fixed, generic sentence, e.g. "The database does not answer", never the text of an exception, a host, a port or a configuration value; the details go to the log of the service.- Parameters:
message- the reason, for any reader of the health- Returns:
- the part that builds the response
-