Interface Aggregation


public interface Aggregation
Configures how measurements are combined into metrics.

Aggregation provides a set of built-in aggregations via static methods.

  • Method Details

    • drop

      static Aggregation drop()
      The drop Aggregation will ignore/drop all Instrument Measurements.
    • defaultAggregation

      static Aggregation defaultAggregation()
      The default aggregation for an instrument will be chosen.
    • sum

      static Aggregation sum()
      Instrument measurements will be combined into a metric Sum.
    • lastValue

      static Aggregation lastValue()
      Remembers the last seen measurement and reports as a Gauge.
    • explicitBucketHistogram

      static Aggregation explicitBucketHistogram()
      Aggregates measurements into an explicit bucket histogram using the default bucket boundaries.
    • explicitBucketHistogram

      static Aggregation explicitBucketHistogram(List<Double> bucketBoundaries)
      Aggregates measurements into an explicit bucket histogram.
      Parameters:
      bucketBoundaries - A list of (inclusive) upper bounds for the histogram. Should be in order from lowest to highest.