Point
类全名:com.aliyun.hitsdb.client.value.request.Point
- java.lang.Object
- com.aliyun.hitsdb.client.value.JSONValue
- com.aliyun.hitsdb.client.value.request.Point
- public class Point extends JSONValue
嵌套类概要
限定符和类型 类和说明 static class
Point.MetricBuilder
构造器概要
构造器和说明 Point()
方法概要
限定符和类型 方法和说明 static void
checkPoint(Point point)
校验时间点格式String
getAggregator()
获取Aggregator参数。String
getMetric()
获取Metric名称Map<String,String>
getTags()
获取TagsLong
getTimestamp()
获取时间戳Number
getValue()
获取时间数值数值Long
getVersion()
获取数值版本号static Point.MetricBuilder
metric(String metric)
设置Metric。创建并获取一个Point.MetricBuilder实例(Point构建器类)void
setAggregator(String aggregator)
不推荐使用该方法。设置Aggregator。void
setMetric(String metric)
不推荐使用该方法。设置Metric。void
setTags(Map<String,String> tags)
不推荐使用该方法。设置Tags。void
setTimestamp(Long timestamp)
不推荐使用该方法。设置时间戳。void
setValue(Number value)
不推荐使用该方法。设置数值。void
setVersion(Long version)
不推荐使用该方法。设置时间点版本。String
toJSON()
转换为JSON从类继承的方法 com.aliyun.hitsdb.client.value.JSONValue
appendJSON, parseObject, toString
方法详细资料
metric
- public static Point.MetricBuilder metric(String metric)
set the metric- 参数:
metric
- metric- 返回:
- MetricBuilder get a builder
getMetric
- public String getMetric()
getTimestamp
- public Long getTimestamp()
getValue
- public Number getValue()
getAggregator
- public String getAggregator()
getGranularityType
- public Granularity getGranularityType()
getGranularity
- public String getGranularity()
setMetric
- public void setMetric(String metric)
setTimestamp
- public void setTimestamp(Long timestamp)
setValue
- public void setValue(Number value)
setGranularity
- public void setGranularity(String granularity)
setAggregator
- public void setAggregator(String aggregator)
getVersion
- public Long getVersion()
setVersion
- public void setVersion(Long version)
checkPoint
- public static void checkPoint(Point point)
Checkout the point format- 参数:
point
- point
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论