类 Aggregator
- java.lang.Object
-
- com.baidubce.services.tsdb.model.Aggregator
-
public class Aggregator extends Object
Represent the Aggregator for querying datapoints from Tsdb.
-
-
构造器概要
构造器 构造器 说明 Aggregator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DoublegetDivisor()DoublegetFactor()StringgetName()DoublegetPercentile()StringgetSampling()StringgetTimeUnit()voidsetDivisor(Double divisor)voidsetFactor(Double factor)voidsetName(String name)Set the name of this aggregator.voidsetPercentile(Double percentile)voidsetSampling(String sampling)voidsetTimeUnit(String timeUnit)AggregatorwithDivisor(double divisor)AggregatorwithFactor(double factor)AggregatorwithName(String name)AggregatorwithPercentile(double percentile)AggregatorwithSampling(String sampling)AggregatorwithTimeUnit(String timeUnit)
-
-
-
方法详细资料
-
getName
public String getName()
-
setName
public void setName(String name)
Set the name of this aggregator. The available aggregator names are inTsdbConstants- 参数:
name- should be one of the Avg, Dev, Count, First, Last, LeastSquares, Max, Min, Percentile, Sum, Diff, Div, Scale and Rate.
-
getSampling
public String getSampling()
-
setSampling
public void setSampling(String sampling)
-
getDivisor
public Double getDivisor()
-
setDivisor
public void setDivisor(Double divisor)
-
getPercentile
public Double getPercentile()
-
setPercentile
public void setPercentile(Double percentile)
-
getFactor
public Double getFactor()
-
setFactor
public void setFactor(Double factor)
-
getTimeUnit
public String getTimeUnit()
-
setTimeUnit
public void setTimeUnit(String timeUnit)
-
withName
public Aggregator withName(String name)
-
withSampling
public Aggregator withSampling(String sampling)
-
withDivisor
public Aggregator withDivisor(double divisor)
-
withPercentile
public Aggregator withPercentile(double percentile)
-
withFactor
public Aggregator withFactor(double factor)
-
withTimeUnit
public Aggregator withTimeUnit(String timeUnit)
-
-