From 8114d1580a3868a48cf68acba3a0be554fa44c3b Mon Sep 17 00:00:00 2001 From: nhnn Date: Sat, 13 Jul 2024 22:14:42 +0300 Subject: [PATCH] fix: typo, prometheus uses camelCase --- selfprivacy_api/utils/prometheus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/utils/prometheus.py b/selfprivacy_api/utils/prometheus.py index 80a09fe..552801c 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -40,7 +40,7 @@ class PrometheusQueries: raise Exception("Prometheus returned unexpected status") result = json['data'] return PrometheusQueryResult( - result_type=result['result_type'], result=result['result'] + result_type=result['resultType'], result=result['result'] ) except Exception as error: raise Exception("Prometheus request failed! " + str(error))