mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-09 20:53:10 +00:00
feat: timeout for monitoring
This commit is contained in:
parent
3c3b0f6be0
commit
bbd909a544
|
@ -67,6 +67,7 @@ class MonitoringQueries:
|
|||
"end": end,
|
||||
"step": step,
|
||||
},
|
||||
timeout=0.8,
|
||||
)
|
||||
if response.status_code != 200:
|
||||
return MonitoringQueryError(
|
||||
|
@ -93,6 +94,7 @@ class MonitoringQueries:
|
|||
params={
|
||||
"query": query,
|
||||
},
|
||||
timeout=0.8,
|
||||
)
|
||||
if response.status_code != 200:
|
||||
return MonitoringQueryError(
|
||||
|
|
Loading…
Reference in a new issue