com.baidubce.services.tsdb.model
Class Aggregator
java.lang.Object
com.baidubce.services.tsdb.model.Aggregator
public class Aggregator
- extends Object
Represent the Aggregator for querying datapoints from Tsdb.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Aggregator
public Aggregator()
getName
public String getName()
setName
public void setName(String name)
- Set the name of this aggregator.
The available aggregator names are in
TsdbConstants
- Parameters:
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)
Copyright © 2018. All rights reserved.