public Html getHealth()

in geronimo-microprofile-reporter/src/main/java/org/apache/geronimo/microprofile/reporter/storage/front/ReporterEndpoints.java [297:306]


    public Html getHealth(@QueryParam("check") final String name) {
        final InMemoryDatabase<CheckSnapshot> db = database.getChecks().get(name);
        return new Html("main.html")
                .with("view", "health.html")
                .with("colors", COLORS)
                .with("title", "Health Check")
                .with("name", name)
                .with("message", db == null ? "No matching check for name '" + name + "'" : null)
                .with("points", db == null ? null : db.snapshot().stream().map(Point::new).collect(toList()));
    }