Major fixes and new features
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
23
venv/lib/python3.12/site-packages/kafka/metrics/stat.py
Normal file
23
venv/lib/python3.12/site-packages/kafka/metrics/stat.py
Normal file
@@ -0,0 +1,23 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import abc
|
||||
|
||||
|
||||
class AbstractStat(object):
|
||||
"""
|
||||
An AbstractStat is a quantity such as average, max, etc that is computed
|
||||
off the stream of updates to a sensor
|
||||
"""
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
@abc.abstractmethod
|
||||
def record(self, config, value, time_ms):
|
||||
"""
|
||||
Record the given value
|
||||
|
||||
Arguments:
|
||||
config (MetricConfig): The configuration to use for this metric
|
||||
value (float): The value to record
|
||||
timeMs (int): The POSIX time in milliseconds this value occurred
|
||||
"""
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user