Package io.opencensus.metrics
Class LabelValue
java.lang.Object
io.opencensus.metrics.LabelValue
- Direct Known Subclasses:
AutoValue_LabelValue
The value of a
Label
associated with a TimeSeries
.- Since:
- 0.15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelValue
Creates aLabelValue
.abstract String
getValue()
Returns the value of thisLabelValue
.
-
Constructor Details
-
LabelValue
LabelValue()
-
-
Method Details
-
create
Creates aLabelValue
.- Parameters:
value
- the value of aLabel
.null
value indicates an unsetLabelValue
.- Returns:
- a
LabelValue
. - Since:
- 0.17
-
getValue
Returns the value of thisLabelValue
. Returnsnull
if the value is unset and supposed to be ignored.- Returns:
- the value.
- Since:
- 0.17
-