com.ibm.wsspi.usage.metering

Class AggregationMethodDescriptor<T extends AggregationMethodDescriptor<?>>

  • java.lang.Object
    • com.ibm.wsspi.usage.metering.AggregationMethodDescriptor<T>
  • Direct Known Subclasses:
    MetricDescriptor, MetricGroupDescriptor


    public abstract class AggregationMethodDescriptor<T extends AggregationMethodDescriptor<?>>
    extends java.lang.Object
    Provides aggregation method descriptive information about a reported Metric, that will be used to control how the metric information is displayed.
    • Constructor Detail

      • AggregationMethodDescriptor

        public AggregationMethodDescriptor()
    • Method Detail

      • getSliceAggregationMethods

        public java.util.Set<AggregationMethodDescriptor.SliceAggregationMethod> getSliceAggregationMethods()
        Returns the set of aggregation type methods for small time periods (e.g. hours when looking at a day). If not provided, defaults to MIN, MAX, AVG.

        Allowed values:

        The value NONE cannot be combined with other values and will result in the metric not being displayed for small time periods.

      • getSliceAggregationMethodNames

        public java.util.Set<java.lang.String> getSliceAggregationMethodNames()
      • getRangeAggregationMethodNames

        public java.util.Set<java.lang.String> getRangeAggregationMethodNames()
      • setSliceAggregationMethods

        public AggregationMethodDescriptor<T> setSliceAggregationMethods(AggregationMethodDescriptor.SliceAggregationMethod... aggregationMethods)
        Sets the aggregation type methods for small time periods (e.g. hours when looking at a day). If not specified, defaults to MIN, MAX, AVG.

        Allowed values:

        The value NONE cannot be combined with other values and will result in the metric not being displayed for small time periods.

        Returns:
        a reference to this object