Class AggregationConfiguration
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.view.AggregationConfiguration
-
@Immutable public abstract class AggregationConfiguration extends java.lang.ObjectAn 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 aAggregationConfiguration.Temporalitywhich describes whether aggregations should be reset with every collection interval, or continue to accumulate across collection intervals.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregationConfiguration.TemporalityAn enumeration which describes the time period over which metrics should be aggregated.
-
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, AggregationConfiguration.Temporality temporality)Returns a new configuration with the provided options.abstract AggregationConfiguration.Temporalitytemporality()Returns theAggregationConfiguration.Temporalitythat should be used for this View (delta vs.
-
-
-
Method Detail
-
create
public static AggregationConfiguration create(Aggregation aggregation, AggregationConfiguration.Temporality temporality)
Returns a new configuration with the provided options.
-
aggregation
public abstract Aggregation aggregation()
Returns theAggregationthat should be used for this View.
-
temporality
public abstract AggregationConfiguration.Temporality temporality()
Returns theAggregationConfiguration.Temporalitythat should be used for this View (delta vs. cumulative).
-
-