Class StatsdTimer

  • All Implemented Interfaces:
    io.micrometer.core.instrument.distribution.HistogramSupport, io.micrometer.core.instrument.Meter, io.micrometer.core.instrument.Timer

    public class StatsdTimer
    extends io.micrometer.core.instrument.AbstractTimer
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter

        io.micrometer.core.instrument.Meter.Builder, io.micrometer.core.instrument.Meter.Id, io.micrometer.core.instrument.Meter.Type
      • Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Timer

        io.micrometer.core.instrument.Timer.Builder, io.micrometer.core.instrument.Timer.Sample
    • Field Summary

      • Fields inherited from class io.micrometer.core.instrument.AbstractTimer

        clock, histogram
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long count()  
      double max​(java.util.concurrent.TimeUnit unit)
      The StatsD agent will likely compute max with a different window, so the value may not match what you see here.
      protected void recordNonNegative​(long amount, java.util.concurrent.TimeUnit unit)  
      double totalTime​(java.util.concurrent.TimeUnit unit)  
      • Methods inherited from class io.micrometer.core.instrument.AbstractTimer

        baseTimeUnit, close, equals, hashCode, record, record, record, recordCallable, takeSnapshot
      • Methods inherited from class io.micrometer.core.instrument.AbstractMeter

        getId
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micrometer.core.instrument.distribution.HistogramSupport

        takeSnapshot
      • Methods inherited from interface io.micrometer.core.instrument.Meter

        getId, match, use
      • Methods inherited from interface io.micrometer.core.instrument.Timer

        histogramCountAtValue, mean, measure, percentile, record, wrap, wrap, wrap
    • Method Detail

      • recordNonNegative

        protected void recordNonNegative​(long amount,
                                         java.util.concurrent.TimeUnit unit)
        Specified by:
        recordNonNegative in class io.micrometer.core.instrument.AbstractTimer
      • count

        public long count()
      • totalTime

        public double totalTime​(java.util.concurrent.TimeUnit unit)
      • max

        public double max​(java.util.concurrent.TimeUnit unit)
        The StatsD agent will likely compute max with a different window, so the value may not match what you see here. This value is not exported to the agent, and is only for diagnostic use.