类 Datapoint


  • public class Datapoint
    extends Object
    Represent the model of datapoint for Tsdb.
    • 构造器详细资料

      • Datapoint

        public Datapoint()
    • 方法详细资料

      • getMetric

        public String getMetric()
      • setMetric

        public void setMetric​(String metric)
      • getField

        public String getField()
      • setField

        public void setField​(String field)
      • getType

        public String getType()
      • getValues

        public List<List<com.fasterxml.jackson.databind.JsonNode>> getValues()
      • setValues

        public void setValues​(List<List<com.fasterxml.jackson.databind.JsonNode>> values)
      • addLongValue

        public Datapoint addLongValue​(long time,
                                      long value)
        Add datapoint of long type value.
        参数:
        time - datapoint's timestamp
        value - datapoint's value
        返回:
        Datapoint
      • addDoubleValue

        public Datapoint addDoubleValue​(long time,
                                        double value)
        Add datapoint of double type value.
        参数:
        time - datapoint's timestamp
        value - datapoint's value
        返回:
        Datapoint
      • addStringValue

        public Datapoint addStringValue​(long time,
                                        String value)
        Add datapoint of String type value.
        参数:
        time - datapoint's timestamp
        value - datapoint's value
        返回:
        Datapoint
      • addBytesValue

        public Datapoint addBytesValue​(long time,
                                       byte[] value)
      • addTag

        public Datapoint addTag​(String tagKey,
                                String tagValue)
        Add tag for the datapoint.
        参数:
        tagKey -
        tagValue -
        返回:
        Datapoint