summaryrefslogtreecommitdiff
path: root/kafka/metrics/measurable_stat.py
blob: dba887d2b6745f7154669096536d26dfe634bc30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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