Interface Aggregation


  • @Immutable
    public interface Aggregation
    Aggregation is the process of combining a certain set of recorded measurements for a given Instrument into the equivalent MetricData.
    • Method Detail

      • getAggregatorFactory

        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.
        Parameters:
        instrumentValueType - the type of recorded values for the Instrument.
        Returns:
        the AggregationFactory.
      • getUnit

        java.lang.String getUnit​(java.lang.String initialUnit)
        Returns the unit that this Aggregation will produce.
        Parameters:
        initialUnit - the initial unit for the Instrument's measurements.
        Returns:
        the unit that this Aggregation will produce.
      • availableForInstrument

        boolean availableForInstrument​(InstrumentType instrumentType)
        Returns true if this Aggregation can be applied to the given InstrumentType.
        Parameters:
        instrumentType - the type of the Instrument.
        Returns:
        true if this Aggregation can be applied to the given InstrumentType.