public final class Metric
extends java.lang.Object
| 构造器和说明 |
|---|
Metric(MetricType type,
java.lang.String name,
java.lang.String document,
java.util.List<java.lang.String> labels)
Instantiates a new Metric.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getDocument()
Gets document.
|
java.util.List<java.lang.String> |
getLabels()
Gets labels.
|
java.lang.String |
getName()
Gets name.
|
MetricType |
getType()
Gets type.
|
public Metric(MetricType type, java.lang.String name, java.lang.String document, java.util.List<java.lang.String> labels)
type - the typename - the namedocument - the documentlabels - the labelspublic MetricType getType()
public java.lang.String getName()
public java.lang.String getDocument()
public java.util.List<java.lang.String> getLabels()
Copyright © 2026 The Apache Software Foundation. All rights reserved.