(
        self,
        name,  # type: str
        index,  # type: Tuple[str, ...]
        results,  # type: Dict[str, Dict[Tuple[str, ...], Any]]
        tags,  # type: List[str]
    )
Safely send bandwidth usage metrics if name is a bandwidth metric
Safely send bandwidth usage metrics if name is a bandwidth metric
Safely send bandwidth usage metrics if name is a bandwidth metric
def try_submit_bandwidth_usage_metric_if_bandwidth_metric(
        self,
        name,  # type: str
        index,  # type: Tuple[str, ...]
        results,  # type: Dict[str, Dict[Tuple[str, ...], Any]]
        tags,  # type: List[str]
    ):
        # type: (...) -> None
        """
        Safely send bandwidth usage metrics if name is a bandwidth metric
        """
        try:
            self.submit_bandwidth_usage_metric_if_bandwidth_metric(name, index, results, tags)
        except Exception as e:
            msg = 'Unable submit bandwidth usage metric with name=`{}`, index=`{}`, tags=`{}`: {}'.format(
                name, index, tags, e
            )
            self.log.warning(msg)
            self.log.debug(msg, exc_info=True)
def try_submit_bandwidth_usage_metric_if_bandwidth_metric ( self , name , # type: str index , # type: Tuple[str, ...] results , # type: Dict[str, Dict[Tuple[str, ...], Any]] tags , # type: List[str] ) : # type: (...) -> None try : self . submit_bandwidth_usage_metric_if_bandwidth_metric ( name , index , results , tags ) except Exception as e : msg = 'Unable submit bandwidth usage metric with name=`{}`, index=`{}`, tags=`{}`: {}' . format ( name , index , tags , e ) self . log . warning ( msg ) self . log . debug ( msg , exc_info = True )