com.baidubce.services.tsdb.model
Class Aggregator

java.lang.Object
  extended by com.baidubce.services.tsdb.model.Aggregator

public class Aggregator
extends Object

Represent the Aggregator for querying datapoints from Tsdb.


Constructor Summary
Aggregator()
           
 
Method Summary
 Double getDivisor()
           
 Double getFactor()
           
 String getName()
           
 Double getPercentile()
           
 String getSampling()
           
 String getTimeUnit()
           
 void setDivisor(Double divisor)
           
 void setFactor(Double factor)
           
 void setName(String name)
          Set the name of this aggregator.
 void setPercentile(Double percentile)
           
 void setSampling(String sampling)
           
 void setTimeUnit(String timeUnit)
           
 Aggregator withDivisor(double divisor)
           
 Aggregator withFactor(double factor)
           
 Aggregator withName(String name)
           
 Aggregator withPercentile(double percentile)
           
 Aggregator withSampling(String sampling)
           
 Aggregator withTimeUnit(String timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Aggregator

public Aggregator()
Method Detail

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.