public Html getApplicationHealth()

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


    public Html getApplicationHealth() {
        final List<CheckSnapshot> checks = health.doCheck()
                                                 .sorted(comparing(CheckSnapshot::getName))
                                                 .collect(toList());
        return new Html("main.html")
                .with("view", "health-application.html")
                .with("colors", COLORS)
                .with("title", "Application Health")
                .with("globalState", checks.stream()
                                           .filter(it -> it.getState().equals("DOWN")).findAny()
                                           .map(CheckSnapshot::getState).orElse("UP"))
                .with("checks", checks);
    }