Package io.opencensus.metrics
Class LabelValue
- java.lang.Object
-
- io.opencensus.metrics.LabelValue
-
- Direct Known Subclasses:
AutoValue_LabelValue
@ExperimentalApi @Immutable public abstract class LabelValue extends java.lang.Object
The value of aLabel
associated with aTimeSeries
.- Since:
- 0.15
-
-
Constructor Summary
Constructors Constructor Description LabelValue()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LabelValue
create(java.lang.String value)
Creates aLabelValue
.abstract java.lang.String
getValue()
Returns the value of thisLabelValue
.
-
-
-
Method Detail
-
create
public static LabelValue create(@Nullable java.lang.String value)
Creates aLabelValue
.- Parameters:
value
- the value of aLabel
.null
value indicates an unsetLabelValue
.- Returns:
- a
LabelValue
. - Since:
- 0.17
-
getValue
@Nullable public abstract java.lang.String getValue()
Returns the value of thisLabelValue
. Returnsnull
if the value is unset and supposed to be ignored.- Returns:
- the value.
- Since:
- 0.17
-
-