m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
503 B

7 months ago
  1. from __future__ import absolute_import
  2. import abc
  3. from kafka.metrics.measurable import AbstractMeasurable
  4. from kafka.metrics.stat import AbstractStat
  5. class AbstractMeasurableStat(AbstractStat, AbstractMeasurable):
  6. """
  7. An AbstractMeasurableStat is an AbstractStat that is also
  8. an AbstractMeasurable (i.e. can produce a single floating point value).
  9. This is the interface used for most of the simple statistics such
  10. as Avg, Max, Count, etc.
  11. """
  12. __metaclass__ = abc.ABCMeta