Commit 63fb0308 by 陈森彬

update

parent f67809c7
Showing with 2 additions and 0 deletions
......@@ -68,6 +68,8 @@ def get_error_ratio(task_code, time_range=30):
# value = response['aggregations']['avgFailRate']['value']
value = res.json()['aggregations']['avgFailRate']['value'] if res.status_code==200 else 0.0
print(task_code,value)
print(res.json())
return round(value, 3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment