Class SumAggregation
java.lang.Object
io.opentelemetry.sdk.metrics.internal.view.SumAggregation
- All Implemented Interfaces:
Aggregation,AggregatorFactory
A sum aggregation configuration.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends PointData,U extends ExemplarData>
Aggregator<T, U> createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode) Returns a newAggregator.static AggregationbooleanisCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor) Determine if theAggregatorproduced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.toString()
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SumAggregation
private SumAggregation()
-
-
Method Details
-
getInstance
-
createAggregator
public <T extends PointData,U extends ExemplarData> Aggregator<T,U> createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode) Description copied from interface:AggregatorFactoryReturns a newAggregator.- Specified by:
createAggregatorin interfaceAggregatorFactory- Parameters:
instrumentDescriptor- the descriptor of theInstrumentthat will record measurements.exemplarFilter- the filter on which measurements should turn into exemplarsmemoryMode- TheMemoryModethe aggregator will use- Returns:
- a new
Aggregator.Aggregator.drop()indicates no measurements should be recorded.
-
isCompatibleWithInstrument
Description copied from interface:AggregatorFactoryDetermine if theAggregatorproduced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.- Specified by:
isCompatibleWithInstrumentin interfaceAggregatorFactory
-
toString
-