Interface HealthResult
Used to represent the output of a HealthIndicator.
- Since:
- 1.0
- Author:
- James Kleeh
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classHelper class to build instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthResult.BuilderCreates a builder to build aHealthResult.static HealthResult.Builderbuilder(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
-