Package io.opencensus.metrics
Class LabelKey
- java.lang.Object
-
- io.opencensus.metrics.LabelKey
-
- Direct Known Subclasses:
AutoValue_LabelKey
@ExperimentalApi @Immutable public abstract class LabelKey extends java.lang.Object
The key of aLabel
associated with aMetricDescriptor
.- Since:
- 0.15
-
-
Constructor Summary
Constructors Constructor Description LabelKey()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LabelKey
create(java.lang.String key, java.lang.String description)
Creates aLabelKey
.abstract java.lang.String
getDescription()
Returns the description of thisLabelKey
.abstract java.lang.String
getKey()
Returns the key of thisLabelKey
.
-
-
-
Method Detail
-
create
public static LabelKey create(java.lang.String key, java.lang.String description)
Creates aLabelKey
.- Parameters:
key
- the key of aLabel
.description
- a human-readable description of what this label key represents.- Returns:
- a
LabelKey
. - Since:
- 0.17
-
getKey
public abstract java.lang.String getKey()
Returns the key of thisLabelKey
.- Returns:
- the key.
- Since:
- 0.17
-
getDescription
public abstract java.lang.String getDescription()
Returns the description of thisLabelKey
.- Returns:
- the description.
- Since:
- 0.17
-
-