Interface HealthResult
Used to represent the output of a HealthIndicator
.
- Since:
- 1.0
- Author:
- James Kleeh
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Helper class to build instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthResult.Builder
Creates a builder to build aHealthResult
.static HealthResult.Builder
builder
(String name, HealthStatus status) Creates a builder to build aHealthResult
.getName()
-
Method Details
-
getName
String getName()- Returns:
- The name associated with the details
-
getStatus
HealthStatus getStatus()- Returns:
- The status of the result
-
getDetails
Object getDetails()- Returns:
- Any data to be returned
-
builder
Creates a builder to build aHealthResult
.- Parameters:
name
- The name of the resultstatus
- The status- Returns:
- The builder
-
builder
Creates a builder to build aHealthResult
.- Parameters:
name
- The name of the result- Returns:
- The builder
-