Class HealthCheckService.HealthCheckResult
java.lang.Object
org.hyperledger.besu.plugin.services.HealthCheckService.HealthCheckResult
- Enclosing interface:
HealthCheckService
Result of a health check evaluation, including optional diagnostic details.
-
Constructor Summary
ConstructorsConstructorDescriptionHealthCheckResult(boolean healthy, Map<String, Object> details) Creates a health check result. -
Method Summary
Modifier and TypeMethodDescriptionReturns diagnostic details for the responsechecksobject.booleanReturns whether the check passed.of(boolean healthy) Creates a healthy or unhealthy result with no details.
-
Constructor Details
-
HealthCheckResult
Creates a health check result.- Parameters:
healthy- whether the check passeddetails- diagnostic details to include underchecks; may be null or empty. Null keys and null values are omitted. Values should be JSON-friendly types that Vert.xJsonObjectcan encode (for example String, Number, Boolean, Map, or List). Custom object types are not guaranteed to render correctly in the HTTP response.
-
-
Method Details
-
of
Creates a healthy or unhealthy result with no details.- Parameters:
healthy- whether the check passed- Returns:
- the result
-
isHealthy
public boolean isHealthy()Returns whether the check passed.- Returns:
- true if healthy
-
getDetails
-