@Immutable public interface Aggregation
Aggregation is the process of combining a certain set of recorded measurements for a
given Instrument into the equivalent MetricData.| Modifier and Type | Method and Description |
|---|---|
boolean |
availableForInstrument(InstrumentType instrumentType)
Returns
true if this Aggregation can be applied to the given InstrumentType. |
AggregatorFactory |
getAggregatorFactory(InstrumentValueType instrumentValueType)
Returns an
AggregationFactory that can be used to produce the Aggregator that needs to be used to aggregate all the
values to produce this Aggregation. |
MetricData.Type |
getDescriptorType(InstrumentType instrumentType,
InstrumentValueType instrumentValueType)
Returns the
MetricData.Type that this Aggregation will produce. |
String |
getUnit(String initialUnit)
Returns the unit that this
Aggregation will produce. |
AggregatorFactory getAggregatorFactory(InstrumentValueType instrumentValueType)
AggregationFactory that can be used to produce the Aggregator that needs to be used to aggregate all the
values to produce this Aggregation.instrumentValueType - the type of recorded values for the Instrument.AggregationFactory.MetricData.Type getDescriptorType(InstrumentType instrumentType, InstrumentValueType instrumentValueType)
MetricData.Type that this Aggregation will produce.instrumentType - the type of the Instrument.instrumentValueType - the type of recorded values for the Instrument.MetricData.Type that this Aggregation will produce.String getUnit(String initialUnit)
Aggregation will produce.initialUnit - the initial unit for the Instrument's measurements.Aggregation will produce.boolean availableForInstrument(InstrumentType instrumentType)
true if this Aggregation can be applied to the given InstrumentType.instrumentType - the type of the Instrument.true if this Aggregation can be applied to the given InstrumentType.