@InterfaceAudience.Public @InterfaceStability.Evolving public class MetricsTag extends Object implements MetricsInfo
构造函数及描述 |
---|
MetricsTag(MetricsInfo info,
String value)
使用名称、描述和值构造标签
|
修饰符和类型 | 方法和描述 |
---|---|
String |
描述()
Typically the description corresponds to annotation
Metric.about()
or the name of the class. |
boolean |
equals(Object obj) |
int |
hashCode() |
MetricsInfo |
信息() |
String |
名称()
Typically name corresponds to annotation
Metric.value() or
the name of the class. |
String |
toString() |
String |
值()
获取标签的值
|
public MetricsTag(MetricsInfo info, String value)
info
- 标签的信息value
- 标签的值public String name()
MetricsInfo
Metric.value()
或类的名称。name
在接口中 MetricsInfo
public String description()
MetricsInfo
Metric.about()
或类名。description
在接口中 MetricsInfo
public MetricsInfo info()
public String value()
版权所有 © 2024 Apache软件基金会。保留所有权利。