@ExperimentalApi @Immutable public abstract class LabelKey extends Object
Label associated with a MetricDescriptor.| Modifier and Type | Method and Description |
|---|---|
static LabelKey |
create(String key,
String description)
Creates a
LabelKey. |
abstract String |
getDescription()
Returns the description of this
LabelKey. |
abstract String |
getKey()
Returns the key of this
LabelKey. |
public static LabelKey create(String key, String description)
LabelKey.key - the key of a Label.description - a human-readable description of what this label key represents.LabelKey.public abstract String getKey()
LabelKey.