Class HealthResponse
java.lang.Object
com.kingsrook.qqq.middleware.health.model.metadata.HealthResponse
Overall health check response containing the aggregate status and results
from all individual health indicators.
This is the JSON response sent to clients hitting the /health endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for checksGetter for statusGetter for timestampvoidsetChecks(Map<String, HealthCheckResult> checks) Setter for checksvoidsetStatus(HealthStatus status) Setter for statusvoidsetTimestamp(Instant timestamp) Setter for timestampwithCheck(String name, HealthCheckResult result) Add a single check resultwithChecks(Map<String, HealthCheckResult> checks) Fluent setter for checkswithStatus(HealthStatus status) Fluent setter for statuswithTimestamp(Instant timestamp) Fluent setter for timestamp
-
Constructor Details
-
HealthResponse
public HealthResponse()Constructor
-
-
Method Details
-
withStatus
Fluent setter for status -
withTimestamp
Fluent setter for timestamp -
withChecks
Fluent setter for checks -
withCheck
Add a single check result -
getStatus
Getter for status -
setStatus
Setter for status -
getTimestamp
Getter for timestamp -
setTimestamp
Setter for timestamp -
getChecks
Getter for checks -
setChecks
Setter for checks
-