def _set_metric(self, metric_name, metric_type, value, tags=None, device_name=None):
    '\n        Set a metric\n        '
    if (metric_type == HISTOGRAM):
        self.histogram(metric_name, value, tags=tags, device_name=device_name)
    elif (metric_type == INCREMENT):
        self.increment(metric_name, value, tags=tags, device_name=device_name)
    else:
        self.log.error(('Metric type "%s" unknown' % metric_type))
Set a metric
def _set_metric(self, metric_name, metric_type, value, tags=None, device_name=None):
    '\n        \n        '
    if (metric_type == HISTOGRAM):
        self.histogram(metric_name, value, tags=tags, device_name=device_name)
    elif (metric_type == INCREMENT):
        self.increment(metric_name, value, tags=tags, device_name=device_name)
    else:
        self.log.error(('Metric type "%s" unknown' % metric_type))