From e8e60be3bbf665c783f14243285a35f80476fbe6 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Wed, 24 Jul 2024 05:04:29 +0400 Subject: [PATCH] fix: fix --- 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 2248170..3e25a2d 100644 --- a/selfprivacy_api/utils/prometheus.py +++ b/selfprivacy_api/utils/prometheus.py @@ -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))