Class Downsampling


  • public class Downsampling
    extends java.lang.Object
    Used to configure a CeilometerMetricStreamDefinition to ask for downsampled meter values, referred to as statistics in Ceilometer lingo. Statistics are downsampled meter data where an aggregation function is applied to data points over a certain downsampling period.
    See Also:
    CeilometerMetricStreamDefinition
    • Constructor Detail

      • Downsampling

        public Downsampling​(CeilometerFunction function,
                            com.elastisys.scale.commons.json.types.TimeInterval period)
        Creates a Downsampling.
        Parameters:
        function - A Ceilometer aggregation function to apply to data points within each period in a query interval.
        period - The downsampling period. It determines the distance between aggregated data points in the result set. The aggregation function function will be applied to all datapoints within each period in the requested query interval.
    • Method Detail

      • getFunction

        public CeilometerFunction getFunction()
        A Ceilometer aggregation function to apply to data points within each period in a query interval.
        Returns:
      • getPeriod

        public com.elastisys.scale.commons.json.types.TimeInterval getPeriod()
        The downsampling period. It determines the distance between aggregated data points in the result set. The aggregation function function will be applied to all datapoints within each period in the requested query interval.
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object