Package io.opencensus.metrics
Class LabelKey
java.lang.Object
io.opencensus.metrics.LabelKey
- Direct Known Subclasses:
AutoValue_LabelKey
The key of a
Label
associated with a MetricDescriptor
.- Since:
- 0.15
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LabelKey
LabelKey()
-
-
Method Details
-
create
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
Returns the key of thisLabelKey
.- Returns:
- the key.
- Since:
- 0.17
-
getDescription
Returns the description of thisLabelKey
.- Returns:
- the description.
- Since:
- 0.17
-