Class Aggregations


  • public final class Aggregations
    extends Object
    • Method Detail

      • sum

        public static Aggregation sum()
        Returns an Aggregation that calculates sum of recorded measurements.
        Returns:
        an Aggregation that calculates sum of recorded measurements.
      • count

        public static Aggregation count()
        Returns an Aggregation that calculates count of recorded measurements (the number of recorded measurements).
        Returns:
        an Aggregation that calculates count of recorded measurements (the number of recorded * measurements).
      • lastValue

        public static Aggregation lastValue()
        Returns an Aggregation that calculates the last value of all recorded measurements.
        Returns:
        an Aggregation that calculates the last value of all recorded measurements.
      • minMaxSumCount

        public static Aggregation minMaxSumCount()
        Returns an Aggregation that calculates a simple summary of all recorded measurements. The summary consists of the count of measurements, the sum of all measurements, the maximum value recorded and the minimum value recorded.
        Returns:
        an Aggregation that calculates a simple summary of all recorded measurements.