Package org.apache.unomi.healthcheck
Class HealthCheckResponse
- java.lang.Object
-
- org.apache.unomi.healthcheck.HealthCheckResponse
-
public class HealthCheckResponse extends Object
A Health Check response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthCheckResponse.Builder
static class
HealthCheckResponse.Status
-
Constructor Summary
Constructors Modifier Constructor Description protected
HealthCheckResponse(String name, HealthCheckResponse.Status status, long collectingTime, Map<String,Object> data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthCheckResponse.Builder
builder()
static HealthCheckResponse
down(String name)
static HealthCheckResponse
error(String name)
long
getCollectingTime()
Map<String,Object>
getData()
String
getName()
HealthCheckResponse.Status
getStatus()
boolean
isDown()
boolean
isError()
boolean
isLive()
boolean
isUp()
static HealthCheckResponse
live(String name)
static HealthCheckResponse.Builder
named(String name)
static HealthCheckResponse
up(String name)
-
-
-
Constructor Detail
-
HealthCheckResponse
protected HealthCheckResponse(String name, HealthCheckResponse.Status status, long collectingTime, Map<String,Object> data)
-
-
Method Detail
-
getName
public String getName()
-
getStatus
public HealthCheckResponse.Status getStatus()
-
getCollectingTime
public long getCollectingTime()
-
builder
public static HealthCheckResponse.Builder builder()
-
named
public static HealthCheckResponse.Builder named(String name)
-
up
public static HealthCheckResponse up(String name)
-
live
public static HealthCheckResponse live(String name)
-
down
public static HealthCheckResponse down(String name)
-
error
public static HealthCheckResponse error(String name)
-
isLive
public boolean isLive()
-
isUp
public boolean isUp()
-
isDown
public boolean isDown()
-
isError
public boolean isError()
-
-