mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 05:21:28 +00:00
fix: add debug
This commit is contained in:
parent
e8e60be3bb
commit
470f62bb07
|
@ -33,9 +33,11 @@ class PrometheusQueries:
|
|||
"step": step,
|
||||
},
|
||||
)
|
||||
print(response)
|
||||
if response.status_code != 200:
|
||||
raise Exception("Prometheus returned unexpected HTTP status code")
|
||||
json = response.json()
|
||||
print(json)
|
||||
return PrometheusQueryResult(
|
||||
result_type=json["result_type"], result=json["result"]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue