Class TaggedMeasurement

java.lang.Object
org.opensearch.telemetry.metrics.TaggedMeasurement

@ExperimentalApi public final class TaggedMeasurement extends Object
Observable Measurement for the Asynchronous instruments.
Opensearch.experimental:
  • Method Details

    • create

      public static TaggedMeasurement create(double value, Tags tags)
      Factory method to create the TaggedMeasurement object.
      Parameters:
      value - value.
      tags - tags to be added per value.
      Returns:
      tagged measurement TaggedMeasurement
    • getValue

      public Double getValue()
      Returns the value.
      Returns:
      value
    • getTags

      public Tags getTags()
      Returns the tags.
      Returns:
      tags