Package com.linkedin.davinci.stats
Class WritePathLatencySensor
java.lang.Object
com.linkedin.davinci.stats.WritePathLatencySensor
This class serves as a latency sensor for write path that contains two types of stats: Avg and Max.
Note that this latency sensor should only be used in to write path as read path latency evaluation will need more
information than just max and average, e.g. 50/99 percentile numbers.
-
Constructor Summary
ConstructorDescriptionWritePathLatencySensor
(io.tehuti.metrics.MetricsRepository metricsRepo, io.tehuti.metrics.MetricConfig metricConfig, String sensorName) -
Method Summary
-
Constructor Details
-
WritePathLatencySensor
public WritePathLatencySensor(io.tehuti.metrics.MetricsRepository metricsRepo, io.tehuti.metrics.MetricConfig metricConfig, String sensorName)
-
-
Method Details
-
getAvg
public double getAvg()- Returns:
- Avg stats of this latency sensor in millisecond unit.
-
getMax
public double getMax()- Returns:
- Max stats of this latency sensor in millisecond unit.
-
record
public void record(double value, long currentTimeMs) Record the latency value.
-