Class PeriodMetrics

java.lang.Object
com.arpnetworking.clusteraggregator.models.PeriodMetrics

public class PeriodMetrics extends Object
Holds the node metrics for a single period.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot com)
  • Constructor Details

    • PeriodMetrics

      public PeriodMetrics(com.arpnetworking.metrics.MetricsFactory metricsFactory)
      Public constructor.
      Parameters:
      metricsFactory - metrics factory to create metrics from
  • Method Details

    • recordAggregation

      public void recordAggregation(AggregatedData report)
      Stores the report of a metric into the counters.
      Parameters:
      report - Aggregated data to be consumed
    • getLatestPeriod

      public ZonedDateTime getLatestPeriod()
    • getMetricsLatestPeriod

      public long getMetricsLatestPeriod()
    • getServicesLatestPeriod

      public long getServicesLatestPeriod()
    • getStatisticsLatestPeriod

      public long getStatisticsLatestPeriod()