1111)
1212
1313
14- def warn_if_tag_none (tagName , tagValue , tool , level = "Warning" ):
15- if tagValue is None :
14+ def warn_if_tag_none (tag_name , tag_value , tool , level = "Warning" ):
15+ if tag_value is None :
1616 print (
17- '{}! The tag "{}" is None. Given that {} cannot infer it you should pass it via --extra-tags {}=<value>' .format (
18- level , tagName , tool , tagName
17+ '{}! The tag "{}" is None. Given that {} cannot infer'
18+ " it you should pass it via --extra-tags {}=<value>" .format (
19+ level , tag_name , tool , tag_name
1920 )
2021 )
2122
2223
23- def get_tag_fromextra_tags_array (array , tagName ):
24+ def get_tag_fromextra_tags_array (array , tag_name ):
2425 result = None
25- for innerDict in array :
26- inneResult = get_or_none (innerDict , tagName )
27- if inneResult is not None :
28- result = inneResult
26+ for inner_dict in array :
27+ inne_result = get_or_none (inner_dict , tag_name )
28+ if inne_result is not None :
29+ result = inne_result
2930 return result
3031
3132
@@ -50,7 +51,7 @@ def fill_tags_from_passed_array(extra_tags_array):
5051
5152
5253def redis_benchmark_export_logic (
53- benchmark_result , extra_tags_array , results_type , time_series_dict , use_result
54+ benchmark_result , extra_tags_array , results_type , time_series_dict
5455):
5556 ok = True
5657 start_time_ms = get_tag_fromextra_tags_array (extra_tags_array , "start_time_ms" )
@@ -75,7 +76,6 @@ def redis_benchmark_export_logic(
7576 step ,
7677 ) = fill_tags_from_passed_array (extra_tags_array )
7778
78- metrics = {}
7979 col0_row0 = benchmark_result ["col_0" ][0 ]
8080 # new format
8181 # "test","rps","avg_latency_ms","min_latency_ms","p50_latency_ms","p95_latency_ms","p99_latency_ms","max_latency_ms"
0 commit comments