
There is no straight translation for the JMX reporter into python, so I'll do something else in a separate commit.
15 lines
463 B
Python
15 lines
463 B
Python
import abc
|
|
|
|
from kafka.metrics.measurable import AbstractMeasurable
|
|
from kafka.metrics.stat import AbstractStat
|
|
|
|
|
|
class AbstractMeasurableStat(AbstractStat, AbstractMeasurable):
|
|
"""
|
|
An AbstractMeasurableStat is an AbstractStat that is also
|
|
an AbstractMeasurable (i.e. can produce a single floating point value).
|
|
This is the interface used for most of the simple statistics such
|
|
as Avg, Max, Count, etc.
|
|
"""
|
|
__metaclass__ = abc.ABCMeta
|