Class AggregatedData

java.lang.Object
com.arpnetworking.metrics.mad.model.AggregatedData
All Implemented Interfaces:
Serializable

public final class AggregatedData extends Object implements Serializable
Representation of aggregated data; also known as a statistic. However, not to be confused with the identity of a statistic (Statistic). This class represents output from aggregation, but also input to aggregation when clients have performed pre-aggregation.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io), Ville Koskela (ville dot koskela at inscopemetrics dot io)
See Also:
  • Method Details

    • getStatistic

      public Statistic getStatistic()
    • getIsSpecified

      public boolean getIsSpecified()
    • getValue

      public Quantity getValue()
    • getPopulationSize

      public long getPopulationSize()
    • getSupportingData

      public Object getSupportingData()
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation. NOTE: This class is not marked @Loggable due to the potentially large number of samples in the _samples field. Using @Loggable would cause them all to be serialized and in the past has caused significant performance problems.
      Returns:
      Steno log compatible representation.