Class AggregationConfiguration
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.view.AggregationConfiguration
-
@Immutable public abstract class AggregationConfiguration extends Object
An AggregationConfiguration describes how an aggregation should be performed. It includes both anAggregationwhich implements what shape of aggregation is created (i.e. histogram, sum, minMaxSumCount, etc), and aMetricData.AggregationTemporalitywhich describes whether aggregations should be reset with every collection interval, or continue to accumulate across collection intervals.
-
-
Constructor Summary
Constructors Constructor Description AggregationConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Aggregationaggregation()Returns theAggregationthat should be used for this View.static AggregationConfigurationcreate(Aggregation aggregation, MetricData.AggregationTemporality aggregationTemporality)Returns a new configuration with the provided options.abstract MetricData.AggregationTemporalitytemporality()Returns theMetricData.AggregationTemporalitythat should be used for this View (delta vs.
-
-
-
Method Detail
-
create
public static AggregationConfiguration create(Aggregation aggregation, MetricData.AggregationTemporality aggregationTemporality)
Returns a new configuration with the provided options.
-
aggregation
public abstract Aggregation aggregation()
Returns theAggregationthat should be used for this View.
-
temporality
public abstract MetricData.AggregationTemporality temporality()
Returns theMetricData.AggregationTemporalitythat should be used for this View (delta vs. cumulative).
-
-