Package org.apache.unomi.healthcheck
Class HealthCheckResponse
java.lang.Object
org.apache.unomi.healthcheck.HealthCheckResponse
A Health Check response.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHealthCheckResponse(String name, HealthCheckResponse.Status status, long collectingTime, Map<String, Object> data) -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheckResponse.Builderbuilder()static HealthCheckResponsestatic HealthCheckResponselonggetData()getName()booleanisDown()booleanisError()booleanisLive()booleanisUp()static HealthCheckResponsestatic HealthCheckResponse.Builderstatic HealthCheckResponse
-
Constructor Details
-
HealthCheckResponse
protected HealthCheckResponse(String name, HealthCheckResponse.Status status, long collectingTime, Map<String, Object> data)
-
-
Method Details
-
getName
-
getStatus
-
getCollectingTime
public long getCollectingTime() -
getData
-
builder
-
named
-
up
-
live
-
down
-
error
-
isLive
public boolean isLive() -
isUp
public boolean isUp() -
isDown
public boolean isDown() -
isError
public boolean isError()
-