Class CombinedMetricData
java.lang.Object
com.arpnetworking.clusteraggregator.models.CombinedMetricData
A metric-based aggregation model. Holds all of the statistics and supporting for a metric on a host.
These will be combined in an
AggregationRouter
to
produce the set of cluster statistics.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder
implementationforCombinedMetricData
.static class
Representation of a computed statistic and related data. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic long
computePopulationSize
(String metricName, Map<Statistic, CombinedMetricData.StatisticValue> statisticValues) Compute the population size for a metric from its statistic values.static long
computePopulationSizeFromCalculatedValues
(String metricName, Map<Statistic, CalculatedValue<?>> calculatedValues) Compute the population size for a metric from its calculated values.
-
Field Details
-
HOST_KEY
The key used in dimensions to specify the host-dimension.- See Also:
-
SERVICE_KEY
The key used in dimensions to specify the service-dimension.- See Also:
-
CLUSTER_KEY
The key used in dimensions to specify the cluster-dimension.- See Also:
-
-
Method Details
-
getMetricName
-
getPeriod
-
getCalculatedValues
-
getPeriodStart
-
getMinRequestTime
-
getService
-
getCluster
-
computePopulationSize
public static long computePopulationSize(String metricName, Map<Statistic, CombinedMetricData.StatisticValue> statisticValues) Compute the population size for a metric from its statistic values.- Parameters:
metricName
- the name of the metricstatisticValues
- the statistic values for the metric.- Returns:
- requires
CountStatistic
orHistogramStatistic
to return an accurate count otherwise returns 1
-
computePopulationSizeFromCalculatedValues
public static long computePopulationSizeFromCalculatedValues(String metricName, Map<Statistic, CalculatedValue<?>> calculatedValues) Compute the population size for a metric from its calculated values.- Parameters:
metricName
- the name of the metriccalculatedValues
- the calculated values for the metric.- Returns:
- requires
CountStatistic
orHistogramStatistic
to return an accurate count otherwise returns 1
-