public Html getTimer()

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


    public Html getTimer(@QueryParam("timer") final String name) {
        final InMemoryDatabase<TimerSnapshot> db = database.getTimers().get(name);
        return new Html("main.html")
                .with("view", "timer.html")
                .with("colors", COLORS)
                .with("title", "Timer")
                .with("name", name)
                .with("unit", db == null ? null : db.getUnit())
                .with("message", db == null ? "No matching timer for name '" + name + "'" : null)
                .with("points", db == null ? null : db.snapshot().stream().map(Point::new).collect(toList()));
    }