public interface HealthResult
Used to represent the output of a HealthIndicator
.
Modifier and Type | Interface and Description |
---|---|
static class |
HealthResult.Builder
Helper class to build instances.
|
Modifier and Type | Method and Description |
---|---|
static HealthResult.Builder |
builder(java.lang.String name)
Creates a builder to build a
HealthResult . |
static HealthResult.Builder |
builder(java.lang.String name,
HealthStatus status)
Creates a builder to build a
HealthResult . |
java.lang.Object |
getDetails() |
java.lang.String |
getName() |
HealthStatus |
getStatus() |
java.lang.String getName()
HealthStatus getStatus()
java.lang.Object getDetails()
static HealthResult.Builder builder(java.lang.String name, HealthStatus status)
HealthResult
.name
- The name of the resultstatus
- The statusstatic HealthResult.Builder builder(java.lang.String name)
HealthResult
.name
- The name of the result