Class TehutiUtils.SimpleRatioStat

  • All Implemented Interfaces:
    io.tehuti.metrics.Measurable, io.tehuti.metrics.MeasurableStat, io.tehuti.metrics.NamedMeasurableStat, io.tehuti.metrics.Stat
    Enclosing class:
    TehutiUtils

    public static class TehutiUtils.SimpleRatioStat
    extends LambdaStat
    Generate a ratio stat that is based on two arbitrary MeasurableStat. It calculates the proportion of numerator stat over the denominator stat.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.tehuti.metrics.stats.AsyncGauge

        io.tehuti.metrics.stats.AsyncGauge.AsyncGaugeExecutor
    • Field Summary

      • Fields inherited from class io.tehuti.metrics.stats.AsyncGauge

        DEFAULT_ASYNC_GAUGE_EXECUTOR
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleRatioStat​(io.tehuti.metrics.stats.Rate numeratorStat, io.tehuti.metrics.stats.Rate denominatorStat, java.lang.String metricName)  
    • Method Summary

      • Methods inherited from class io.tehuti.metrics.stats.AsyncGauge

        getStatName, measure, record
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.tehuti.metrics.Measurable

        measureWithExtraValue
    • Constructor Detail

      • SimpleRatioStat

        public SimpleRatioStat​(io.tehuti.metrics.stats.Rate numeratorStat,
                               io.tehuti.metrics.stats.Rate denominatorStat,
                               java.lang.String metricName)