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 aLabelassociated 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 LabelValuecreate(java.lang.String value)Creates aLabelValue.abstract java.lang.StringgetValue()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.nullvalue indicates an unsetLabelValue.- Returns:
- a
LabelValue. - Since:
- 0.17
-
getValue
@Nullable public abstract java.lang.String getValue()
Returns the value of thisLabelValue. Returnsnullif the value is unset and supposed to be ignored.- Returns:
- the value.
- Since:
- 0.17
-
-