def _set_metrics_from_json(self, tags, metrics_json, metrics):
    '\n        Parse the JSON response and set the metrics\n        '
    for (status, (metric_name, metric_type)) in metrics.iteritems():
        metric_status = metrics_json.get(status)
        if (metric_status is not None):
            self._set_metric(metric_name, metric_type, metric_status, tags)
Parse the JSON response and set the metrics
def _set_metrics_from_json(self, tags, metrics_json, metrics):
    '\n        \n        '
    for (status, (metric_name, metric_type)) in metrics.iteritems():
        metric_status = metrics_json.get(status)
        if (metric_status is not None):
            self._set_metric(metric_name, metric_type, metric_status, tags)