Package org.apache.kafka.common
Interface Metric
-
- All Known Implementing Classes:
KafkaMetric
public interface Metric
A metric tracked for monitoring purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MetricName
metricName()
A name for this metricObject
metricValue()
The value of the metric, which may be measurable or a non-measurable gaugedouble
value()
Deprecated.As of 1.0.0, usemetricValue()
instead.
-
-
-
Method Detail
-
metricName
MetricName metricName()
A name for this metric
-
value
@Deprecated double value()
Deprecated.As of 1.0.0, usemetricValue()
instead. This will be removed in a future major release.The value of the metric as double if the metric is measurable and `0.0` otherwise.
-
metricValue
Object metricValue()
The value of the metric, which may be measurable or a non-measurable gauge
-
-