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