fix: typo, prometheus uses camelCase

This commit is contained in:
nhnn 2024-07-13 22:14:42 +03:00
parent eca1bc78ba
commit 8114d1580a

View file

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