public class CheckResult extends Object
Constructor and Description |
---|
CheckResult() |
Modifier and Type | Method and Description |
---|---|
static CheckResult |
from(String name,
Status status) |
static CheckResult |
from(String name,
Throwable e) |
List<CheckResult> |
getChecks() |
JsonObject |
getData() |
Throwable |
getFailure() |
String |
getId() |
Status |
getStatus() |
Boolean |
getUp() |
static boolean |
isUp(CheckResult json) |
static boolean |
isUp(Future<CheckResult> json) |
CheckResult |
setChecks(List<CheckResult> checks) |
CheckResult |
setFailure(Throwable failure) |
CheckResult |
setId(String id) |
CheckResult |
setStatus(Status status) |
JsonObject |
toJson()
Get a JSON version of this result, it computes the overall outcome.
|
public static CheckResult from(String name, Status status)
public static CheckResult from(String name, Throwable e)
public static boolean isUp(Future<CheckResult> json)
public static boolean isUp(CheckResult json)
public CheckResult setId(String id)
public String getId()
public Status getStatus()
public CheckResult setStatus(Status status)
public Boolean getUp()
public JsonObject getData()
public Throwable getFailure()
public CheckResult setFailure(Throwable failure)
public CheckResult setChecks(List<CheckResult> checks)
public List<CheckResult> getChecks()
public JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.