fix: typo in PrometheusQueries._send_query

This commit is contained in:
nhnn 2024-07-24 06:01:41 +03:00
parent e8e60be3bb
commit fc5c85e81a

View file

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