This commit is contained in:
dettlaff 2024-07-24 05:04:29 +04:00
parent f74ef57daa
commit e8e60be3bb

View file

@ -37,7 +37,7 @@ class PrometheusQueries:
raise Exception("Prometheus returned unexpected HTTP status code")
json = response.json()
return PrometheusQueryResult(
result_type=json["resultType"], result=json["result"]
result_type=json["result_type"], result=json["result"]
)
except Exception as error:
raise Exception("Prometheus request failed! " + str(error))