(self)
return metrics
Formats all of the metrics and returns them as a dict.

        :return: C{list} of C{dict} of metrics
Formats all of the metrics and returns them as a dict.
Formats all of the metrics and returns them as a dict .
def dump_metrics(self):
        """
        Formats all of the metrics and returns them as a dict.

        :return: C{list} of C{dict} of metrics
        """
        metrics = {}
        for metric_type in (
            self._counters,
            self._histograms,
            self._meters,
            self._timers,
            self._gauges,
        ):
            for key in metric_type.keys():
                metrics[key] = self.get_metrics(key)

        return metrics
def dump_metrics ( self ) : metrics = { } for metric_type in ( self . _counters , self . _histograms , self . _meters , self . _timers , self . _gauges , ) : for key in metric_type . keys ( ) : metrics [ key ] = self . get_metrics ( key ) return metrics