in geronimo-microprofile-reporter/src/main/java/org/apache/geronimo/microprofile/reporter/storage/front/ReporterEndpoints.java [310:323]
public Html getHealthCheckDetail(@QueryParam("check") final String name) {
final InMemoryDatabase.Value<CheckSnapshot> last = ofNullable(database.getChecks().get(name))
.map(InMemoryDatabase::snapshot)
.map(it -> it.isEmpty() ? null : it.getLast())
.orElse(null); // todo: orElseGet -> call them all and filter per name?
return new Html("main.html")
.with("view", "health-check-detail.html")
.with("colors", COLORS)
.with("title", "Health Check")
.with("name", name)
.with("message", last == null ? "No matching check yet for name '" + name + "'" : null)
.with("lastCheckTimestamp", last == null ? null : new Date(last.getTimestamp()))
.with("lastCheck", last == null ? null : last.getValue());
}