Class PeriodMetrics
java.lang.Object
com.arpnetworking.clusteraggregator.models.PeriodMetrics
Holds the node metrics for a single period.
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot com)
-
Constructor Summary
ConstructorDescriptionPeriodMetrics
(com.arpnetworking.metrics.MetricsFactory metricsFactory) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
void
recordAggregation
(AggregatedData report) Stores the report of a metric into the counters.
-
Constructor Details
-
PeriodMetrics
public PeriodMetrics(com.arpnetworking.metrics.MetricsFactory metricsFactory) Public constructor.- Parameters:
metricsFactory
- metrics factory to create metrics from
-
-
Method Details
-
recordAggregation
Stores the report of a metric into the counters.- Parameters:
report
- Aggregated data to be consumed
-
getLatestPeriod
-
getMetricsLatestPeriod
public long getMetricsLatestPeriod() -
getServicesLatestPeriod
public long getServicesLatestPeriod() -
getStatisticsLatestPeriod
public long getStatisticsLatestPeriod()
-