#NEWLINE# def process_metric( self , region_cw_conn , zone , start_time , end_time , elb_name , metric ) : #NEWLINE# #INDENT# stats = region_cw_conn . get_metric_statistics ( self . config [ 'interval' ] , start_time , end_time , metric . name , namespace = 'AWS/ELB' , statistics = [ self . aws_type ] , dimensions = { #NEWLINE# #INDENT# 'LoadBalancerName' : elb_name , #NEWLINE# 'AvailabilityZone' : zone , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( ( len ( stats ) == 0 ) and metric . default_to_zero ) : #NEWLINE# #INDENT# stats . append ( { #NEWLINE# #INDENT# 'Timestamp' : start_time , #NEWLINE# metric . aws_type : 0.0 , #NEWLINE# 'Unit' : 'Count' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# for stat in stats : #NEWLINE# #INDENT# self . process_stat ( region_cw_conn . region . name , zone , elb_name , metric , stat , end_time )