Class LogbackReporter

  • All Implemented Interfaces:
    com.codahale.metrics.Reporter, java.io.Closeable, java.lang.AutoCloseable

    public class LogbackReporter
    extends com.codahale.metrics.ScheduledReporter
    A reporter which outputs measurements to a PrintStream, like System.out.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LogbackReporter.Builder
      A builder for ConsoleReporter instances.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static LogbackReporter.Builder forRegistry​(com.codahale.metrics.MetricRegistry registry)
      Returns a new LogbackReporter.Builder for ConsoleReporter.
      void report​(java.util.SortedMap<java.lang.String,​com.codahale.metrics.Gauge> gauges, java.util.SortedMap<java.lang.String,​com.codahale.metrics.Counter> counters, java.util.SortedMap<java.lang.String,​com.codahale.metrics.Histogram> histograms, java.util.SortedMap<java.lang.String,​com.codahale.metrics.Meter> meters, java.util.SortedMap<java.lang.String,​com.codahale.metrics.Timer> timers)  
      • Methods inherited from class com.codahale.metrics.ScheduledReporter

        close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, isShutdownExecutorOnStop, report, start, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • report

        public void report​(java.util.SortedMap<java.lang.String,​com.codahale.metrics.Gauge> gauges,
                           java.util.SortedMap<java.lang.String,​com.codahale.metrics.Counter> counters,
                           java.util.SortedMap<java.lang.String,​com.codahale.metrics.Histogram> histograms,
                           java.util.SortedMap<java.lang.String,​com.codahale.metrics.Meter> meters,
                           java.util.SortedMap<java.lang.String,​com.codahale.metrics.Timer> timers)
        Specified by:
        report in class com.codahale.metrics.ScheduledReporter