更新时间:2020-06-05 20:15
- 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() 获取Tags |
Long | 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 |
appendJSON, parseObject, toString
- public static Point.MetricBuilder metric(String metric)
metric
- metric
- public String getMetric()
- public Long getTimestamp()
- public Number getValue()
- public String getAggregator()
- public Granularity getGranularityType()
- public String getGranularity()
- public void setMetric(String metric)
- public void setTimestamp(Long timestamp)
- public void setValue(Number value)
- public void setGranularity(String granularity)
- public void setAggregator(String aggregator)
- public Long getVersion()
- public void setVersion(Long version)
- public static void checkPoint(Point point)
point
- point
在文档使用中是否遇到以下问题
更多建议
匿名提交