edit-icon download-icon

Point.MetricBuilder

Last Updated: Mar 28, 2018

Class name: com.aliyun.hitsdb.client.value.request.Point.MetricBuilder

  • Enclosing class:
    Point


    public static class Point.MetricBuilder
    extends Object
    • Builder details

      • MetricBuilder

        public MetricBuilder()
      • MetricBuilder

        public MetricBuilder(String metric)
    • Method details

      • tag

        public Point.MetricBuilder tag(String tagName,
                                String value)
        Add a Tag key-value pair.
        Parameters:
        tagName - Tag name
        value - Tag value
        Return:
        MetricBuilder
      • aggregator

        public Point.MetricBuilder aggregator(String aggregator)
        Set the Aggregator value
        Parameters:
        aggregator - Instance of Aggregator enumeration
        Return:
        MetricBuilder
      • timestamp

        public Point.MetricBuilder timestamp(long timestamp)
        Set the timestamp. The timestamp can be seconds or milliseconds.
        Parameters:
        timestamp - Timestamp
        Return:
        MetricBuilder
      • timestamp

        public Point.MetricBuilder timestamp(Date date)
        Set the timestamp. The timestamp can be seconds or milliseconds.
        Parameters:
        date - Time displayed by java.util.Date
        Return:
        MetricBuilder
      • value

        public Point.MetricBuilder value(Number value)
        Set the value of the time point.
        Parameters:
        value - value
        Return:
        MetricBuilder
      • value

        public Point.MetricBuilder value(long timestamp,
                                    Number value)
        Set the time and value of the time point.
        Parameters:
        timestamp - Timestamp, in seconds or milliseconds.
        value - value. Type can be: double, long, int
        Return:
        MetricBuilder
      • value

        public Point.MetricBuilder value(Date date,
                                    Number value)
        Set the time and value of the time point.
        Parameters:
        timestamp - Time displayed by java.util.Date
        value - value. Type can be: double, long, int
        Return:
        MetricBuilder
      • build

        public Point build()
        Build a time point
        Return:
        Point
      • build

        public Point build(boolean checkPoint)
        Build a time point
Thank you! We've received your feedback.