

def snapshot(self):
    "\n        Return a nested dictionary snapshot of all metrics and their\n        values at this time. Example:\n        {\n            'category': {\n                'metric1_name': 42.0,\n                'metric2_name': 'foo'\n            }\n        }\n        "
    return dict(((category, dict(((name, metric.value()) for (name, metric) in list(metrics.items())))) for (category, metrics) in list(self._store.items())))

dataset/ETHPy150Open dpkp/kafka-python/kafka/metrics/dict_reporter.py DictReporter.snapshot/original