Class Aggregation
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.view.Aggregation
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorFactoryconfig(InstrumentDescriptor instrument)Returns the appropriate aggregator factory for a given instrument.static AggregationdefaultAggregation()The default aggregation for an instrument will be chosen.static AggregationexplictBucketHistogram()Aggregates measurments into an explicit bucket histogram using the default bucket boundaries.static AggregationexplictBucketHistogram(AggregationTemporality temporality)Aggregates measurments into an explicit bucket histogram using the default bucket boundaries.static AggregationexplictBucketHistogram(AggregationTemporality temporality, List<Double> bucketBoundaries)Aggregates measurments into an explicit bucket histogram.static Aggregationhistogram()Aggregates measurements using the best available Histogram.static AggregationlastValue()Remembers the last seen measurement and reports as a Gauge.static Aggregationnone()The None Aggregation will ignore/drop all Instrument Measurements.static Aggregationsum()Instrument measurements will be combined into a metric Sum.static Aggregationsum(AggregationTemporality temporality)Instrument measurements will be combined into a metric Sum.
-
-
-
Method Detail
-
config
public abstract io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorFactory config(InstrumentDescriptor instrument)
Returns the appropriate aggregator factory for a given instrument.- Returns:
- The AggregatorFactory or
nullif none.
-
none
public static Aggregation none()
The None Aggregation will ignore/drop all Instrument Measurements.
-
defaultAggregation
public static Aggregation defaultAggregation()
The default aggregation for an instrument will be chosen.
-
sum
public static Aggregation sum(AggregationTemporality temporality)
Instrument measurements will be combined into a metric Sum.
-
sum
public static Aggregation sum()
Instrument measurements will be combined into a metric Sum.
-
lastValue
public static Aggregation lastValue()
Remembers the last seen measurement and reports as a Gauge.
-
explictBucketHistogram
public static Aggregation explictBucketHistogram()
Aggregates measurments into an explicit bucket histogram using the default bucket boundaries.
-
explictBucketHistogram
public static Aggregation explictBucketHistogram(AggregationTemporality temporality)
Aggregates measurments into an explicit bucket histogram using the default bucket boundaries.- Parameters:
temporality- Whether to report DELTA or CUMULATIVE metrics.
-
explictBucketHistogram
public static Aggregation explictBucketHistogram(AggregationTemporality temporality, List<Double> bucketBoundaries)
Aggregates measurments into an explicit bucket histogram.- Parameters:
temporality- Whether to report DELTA or CUMULATIVE metrics.bucketBoundaries- A list of (inclusive) upper bounds for the histogram. Should be in order from lowest to highest.
-
histogram
public static final Aggregation histogram()
Aggregates measurements using the best available Histogram.
-
-