Class LabelValue

java.lang.Object
io.opencensus.metrics.LabelValue
Direct Known Subclasses:
AutoValue_LabelValue

@ExperimentalApi @Immutable public abstract class LabelValue extends Object
The value of a Label associated with a TimeSeries.
Since:
0.15
  • Constructor Details

    • LabelValue

      LabelValue()
  • Method Details

    • create

      public static LabelValue create(@Nullable String value)
      Creates a LabelValue.
      Parameters:
      value - the value of a Label. null value indicates an unset LabelValue.
      Returns:
      a LabelValue.
      Since:
      0.17
    • getValue

      @Nullable public abstract String getValue()
      Returns the value of this LabelValue. Returns null if the value is unset and supposed to be ignored.
      Returns:
      the value.
      Since:
      0.17