public Html getCounter()

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


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