public class ValueData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueData.TypeEnum
数据的类型。 取值范围 只能是\"int\"或\"float\"。
|
| Constructor and Description |
|---|
ValueData() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getMetricName()
指标名称。长度1~255。
|
ValueData.TypeEnum |
getType()
数据的类型。 取值范围 只能是\"int\"或\"float\"。
|
String |
getUnit()
数据的单位。长度不超过32个字符。
|
Double |
getValue()
指标数据的值。 取值范围 有效的数值类型。
minimum: 0
|
int |
hashCode() |
void |
setMetricName(String metricName) |
void |
setType(ValueData.TypeEnum type) |
void |
setUnit(String unit) |
void |
setValue(Double value) |
String |
toString() |
ValueData |
withMetricName(String metricName) |
ValueData |
withType(ValueData.TypeEnum type) |
ValueData |
withUnit(String unit) |
ValueData |
withValue(Double value) |
public String getMetricName()
public void setMetricName(String metricName)
public ValueData withType(ValueData.TypeEnum type)
public ValueData.TypeEnum getType()
public void setType(ValueData.TypeEnum type)
public String getUnit()
public void setUnit(String unit)
public Double getValue()
public void setValue(Double value)
Copyright © 2022. All rights reserved.