Class Downsampling
- java.lang.Object
-
- com.elastisys.autoscaler.metricstreamers.ceilometer.config.Downsampling
-
public class Downsampling extends java.lang.ObjectUsed to configure aCeilometerMetricStreamDefinitionto 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 Summary
Constructors Constructor Description Downsampling(CeilometerFunction function, com.elastisys.scale.commons.json.types.TimeInterval period)Creates aDownsampling.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)CeilometerFunctiongetFunction()A Ceilometer aggregation function to apply to data points within eachperiodin a query interval.com.elastisys.scale.commons.json.types.TimeIntervalgetPeriod()The downsampling period.inthashCode()java.lang.StringtoString()voidvalidate()
-
-
-
Constructor Detail
-
Downsampling
public Downsampling(CeilometerFunction function, com.elastisys.scale.commons.json.types.TimeInterval period)
Creates aDownsampling.- Parameters:
function- A Ceilometer aggregation function to apply to data points within eachperiodin a query interval.period- The downsampling period. It determines the distance between aggregated data points in the result set. The aggregation functionfunctionwill 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 eachperiodin 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 functionfunctionwill be applied to all datapoints within each period in the requested query interval.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
validate
public void validate() throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-