(self, metric_name, metric_type, value, tags=None, device_name=None)
Set a metric
Set a metric
Set a metric
def _set_metric(self, metric_name, metric_type, value, tags=None, device_name=None):
        """
        Set a metric
        """
        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)
def _set_metric ( self , metric_name , metric_type , value , tags = None , device_name = None ) : 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 )