@@ -446,7 +446,7 @@ def v2_runner_on_failed(self, result, ignore_errors=False):
446446 rc = 3 if not ignore_errors else 2
447447 self ._update_task_stats (result , rc )
448448
449- def _emit_message (self , data : dict ) -> None :
449+ def _emit_message (self , data ) :
450450 if self .message_socket_address :
451451 with socket .socket (socket .AF_UNIX , socket .SOCK_STREAM ) as _socket :
452452 try :
@@ -539,23 +539,11 @@ def v2_playbook_on_stats(self, stats):
539539 'Overall duration of APImon tasks in playbook %s is: %s s' %
540540 (self .playbook_name , str (overall_apimon_duration / 1000 )))
541541
542- def _get_metric_data (self , name : str ,
543- vals : dict , ** kwargs ) -> dict :
542+ def _get_metric_data (
543+ self , name , vals , ** kwargs
544+ ):
544545 rc = int (vals .get ('rc' , - 1 ))
545546 dt = []
546- # message.Metric(
547- # '%s.attempted' % (name),
548- # value=1,
549- # metric_type='c',
550- # **kwargs
551- # ),
552- # message.Metric(
553- # '%s.rc_%s' % (name, str(rc)),
554- # value=1,
555- # metric_type='c',
556- # **kwargs
557- # )
558- # ]
559547 if rc == 0 :
560548 kwargs ['name_suffix' ] = 'passed'
561549 elif rc == 1 :
@@ -572,7 +560,7 @@ def _get_metric_data(self, name: str,
572560 ))
573561 return dt
574562
575- def _anonymize_message (self , msg : str ) -> str :
563+ def _anonymize_message (self , msg ) :
576564 # Anonymize remaining part
577565 # Project_id
578566 result = msg
0 commit comments