Package com.linkedin.venice.stats
Class TehutiUtils.SimpleRatioStat
java.lang.Object
io.tehuti.metrics.stats.AsyncGauge
com.linkedin.venice.stats.LambdaStat
com.linkedin.venice.stats.TehutiUtils.SimpleRatioStat
- All Implemented Interfaces:
io.tehuti.metrics.Measurable
,io.tehuti.metrics.MeasurableStat
,io.tehuti.metrics.NamedMeasurableStat
,io.tehuti.metrics.Stat
- Enclosing class:
- TehutiUtils
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
ConstructorDescriptionSimpleRatioStat
(io.tehuti.metrics.stats.Rate numeratorStat, io.tehuti.metrics.stats.Rate denominatorStat, 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 Details
-
SimpleRatioStat
public SimpleRatioStat(io.tehuti.metrics.stats.Rate numeratorStat, io.tehuti.metrics.stats.Rate denominatorStat, String metricName)
-