类 Aggregator


  • public class Aggregator
    extends Object
    Represent the Aggregator for querying datapoints from Tsdb.
    • 构造器详细资料

      • 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
        参数:
        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)
      • withDivisor

        public Aggregator withDivisor​(double divisor)
      • withPercentile

        public Aggregator withPercentile​(double percentile)
      • withFactor

        public Aggregator withFactor​(double factor)