11
11
)
12
12
13
13
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 :
16
16
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
19
20
)
20
21
)
21
22
22
23
23
- def get_tag_fromextra_tags_array (array , tagName ):
24
+ def get_tag_fromextra_tags_array (array , tag_name ):
24
25
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
29
30
return result
30
31
31
32
@@ -50,7 +51,7 @@ def fill_tags_from_passed_array(extra_tags_array):
50
51
51
52
52
53
def 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
54
55
):
55
56
ok = True
56
57
start_time_ms = get_tag_fromextra_tags_array (extra_tags_array , "start_time_ms" )
@@ -75,7 +76,6 @@ def redis_benchmark_export_logic(
75
76
step ,
76
77
) = fill_tags_from_passed_array (extra_tags_array )
77
78
78
- metrics = {}
79
79
col0_row0 = benchmark_result ["col_0" ][0 ]
80
80
# new format
81
81
# "test","rps","avg_latency_ms","min_latency_ms","p50_latency_ms","p95_latency_ms","p99_latency_ms","max_latency_ms"
0 commit comments