(self, key)
return metrics
Gets all the metrics for a specified key.

        :param key: name of the metric
        :type key: C{str}

        :return: C{dict}
Gets all the metrics for a specified key.
Gets all the metrics for a specified key .
def get_metrics(self, key):
        """
        Gets all the metrics for a specified key.

        :param key: name of the metric
        :type key: C{str}

        :return: C{dict}
        """
        metrics = {}
        for getter in (
            self._get_counter_metrics,
            self._get_histogram_metrics,
            self._get_meter_metrics,
            self._get_timer_metrics,
            self._get_gauge_metrics,
        ):
            metrics.update(getter(key))
        return metrics
def get_metrics ( self , key ) : metrics = { } for getter in ( self . _get_counter_metrics , self . _get_histogram_metrics , self . _get_meter_metrics , self . _get_timer_metrics , self . _get_gauge_metrics , ) : metrics . update ( getter ( key ) ) return metrics