Package com.linkedin.venice.tehuti
Class MetricsUtils
java.lang.Object
com.linkedin.venice.tehuti.MetricsUtils
Utility functions to help test metrics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
getAvg
(String metricName, 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)
-
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) -
getMetricValue
public static double getMetricValue(String metricName, List<? extends MetricsAware> metricsAwareWrapperList, DoubleAccumulator accumulator)
-