Package io.grpc

Class LongHistogramMetricInstrument

java.lang.Object
io.grpc.LongHistogramMetricInstrument
All Implemented Interfaces:
MetricInstrument

@Internal public final class LongHistogramMetricInstrument extends Object
Represents a long-valued histogram metric instrument.
  • Field Details Link icon

    • index Link icon

      protected final int index
    • name Link icon

      protected final String name
    • description Link icon

      protected final String description
    • unit Link icon

      protected final String unit
    • requiredLabelKeys Link icon

      protected final List<String> requiredLabelKeys
    • optionalLabelKeys Link icon

      protected final List<String> optionalLabelKeys
    • enableByDefault Link icon

      protected final boolean enableByDefault
  • Constructor Details Link icon

    • LongHistogramMetricInstrument Link icon

      public LongHistogramMetricInstrument(int index, String name, String description, String unit, List<Long> bucketBoundaries, List<String> requiredLabelKeys, List<String> optionalLabelKeys, boolean enableByDefault)
  • Method Details Link icon

    • getBucketBoundaries Link icon

      public List<Long> getBucketBoundaries()
    • getIndex Link icon

      public int getIndex()
      Description copied from interface: MetricInstrument
      Returns the unique index of this metric instrument.
      Specified by:
      getIndex in interface MetricInstrument
      Returns:
      the index of the metric instrument.
    • getName Link icon

      public String getName()
      Description copied from interface: MetricInstrument
      Returns the name of the metric.
      Specified by:
      getName in interface MetricInstrument
      Returns:
      the name of the metric.
    • getDescription Link icon

      public String getDescription()
      Description copied from interface: MetricInstrument
      Returns a description of the metric.
      Specified by:
      getDescription in interface MetricInstrument
      Returns:
      a description of the metric.
    • getUnit Link icon

      public String getUnit()
      Description copied from interface: MetricInstrument
      Returns the unit of measurement for the metric.
      Specified by:
      getUnit in interface MetricInstrument
      Returns:
      the unit of measurement.
    • getRequiredLabelKeys Link icon

      public List<String> getRequiredLabelKeys()
      Description copied from interface: MetricInstrument
      Returns a list of required label keys for this metric instrument.
      Specified by:
      getRequiredLabelKeys in interface MetricInstrument
      Returns:
      a list of required label keys.
    • getOptionalLabelKeys Link icon

      public List<String> getOptionalLabelKeys()
      Description copied from interface: MetricInstrument
      Returns a list of optional label keys for this metric instrument.
      Specified by:
      getOptionalLabelKeys in interface MetricInstrument
      Returns:
      a list of optional label keys.
    • isEnableByDefault Link icon

      public boolean isEnableByDefault()
      Description copied from interface: MetricInstrument
      Indicates whether this metric instrument is enabled by default.
      Specified by:
      isEnableByDefault in interface MetricInstrument
      Returns:
      true if this metric instrument is enabled by default, false otherwise.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object