Package com.linkedin.venice.tehuti
Class MetricsUtils
java.lang.Object
com.linkedin.venice.tehuti.MetricsUtils
Utility functions to help test metrics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
getAvg
(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) getAvgMax
(String baseMetricName, List<? extends MetricsAware> metricsAwareWrapperList) static double
getMax
(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) static double
getMetricValue
(String metricName, List<? extends MetricsAware> metricsAwareWrapperList, DoubleAccumulator accumulator) static double
getMin
(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) static double
getSum
(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) static void
validateMetricRange
(List<Double> metricValues, double min, double max)
-
Constructor Details
-
MetricsUtils
public MetricsUtils()
-
-
Method Details
-
getMax
public static double getMax(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) -
getMin
public static double getMin(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) -
getSum
public static double getSum(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) -
getAvg
public static double getAvg(String metricName, List<? extends MetricsAware> metricsAwareWrapperList) -
getAvgMax
public static List<Double> getAvgMax(String baseMetricName, List<? extends MetricsAware> metricsAwareWrapperList) -
validateMetricRange
public static void validateMetricRange(List<Double> metricValues, double min, double max) throws Exception - Throws:
Exception
-
getMetricValue
public static double getMetricValue(String metricName, List<? extends MetricsAware> metricsAwareWrapperList, DoubleAccumulator accumulator)
-