mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-18 20:39:46 +00:00
feat: timeout for monitoring
This commit is contained in:
parent
3c3b0f6be0
commit
bbd909a544
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,7 @@ class MonitoringQueries:
|
||||||
"end": end,
|
"end": end,
|
||||||
"step": step,
|
"step": step,
|
||||||
},
|
},
|
||||||
|
timeout=0.8,
|
||||||
)
|
)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
return MonitoringQueryError(
|
return MonitoringQueryError(
|
||||||
|
@ -93,6 +94,7 @@ class MonitoringQueries:
|
||||||
params={
|
params={
|
||||||
"query": query,
|
"query": query,
|
||||||
},
|
},
|
||||||
|
timeout=0.8,
|
||||||
)
|
)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
return MonitoringQueryError(
|
return MonitoringQueryError(
|
||||||
|
|
Loading…
Add table
Reference in a new issue