Interface MetricInstrument
- All Known Subinterfaces:
CallbackMetricInstrument
- All Known Implementing Classes:
DoubleCounterMetricInstrument, DoubleHistogramMetricInstrument, LongCounterMetricInstrument, LongGaugeMetricInstrument, LongHistogramMetricInstrument, PartialMetricInstrument
Represents a metric instrument. Metric instrument contains information used to describe a metric.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a description of the metric.intgetIndex()Returns the unique index of this metric instrument.getName()Returns the name of the metric.Returns a list of optional label keys for this metric instrument.Returns a list of required label keys for this metric instrument.getUnit()Returns the unit of measurement for the metric.booleanIndicates whether this metric instrument is enabled by default.
-
Method Details
-
getIndex
int getIndex()Returns the unique index of this metric instrument.- Returns:
- the index of the metric instrument.
-
getName
-
getDescription
-
getUnit
-
getRequiredLabelKeys
-
getOptionalLabelKeys
-
isEnableByDefault
boolean isEnableByDefault()Indicates whether this metric instrument is enabled by default.- Returns:
trueif this metric instrument is enabled by default,falseotherwise.
-