From 8f17546d5cb9cbadaf258ff31fc69329e7c82a98 Mon Sep 17 00:00:00 2001 From: HgO Date: Fri, 8 Jul 2022 23:23:38 +0200 Subject: [PATCH] fix api endpoint missing --- matrix_alertbot/alertmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_alertbot/alertmanager.py b/matrix_alertbot/alertmanager.py index 20c9d04..7d97c16 100644 --- a/matrix_alertbot/alertmanager.py +++ b/matrix_alertbot/alertmanager.py @@ -32,7 +32,7 @@ class AlertmanagerClient: async def get_alerts(self) -> List[Dict]: try: - async with self.session.get(f"{self.api_url}") as response: + async with self.session.get(f"{self.api_url}/alerts") as response: response.raise_for_status() return await response.json() except ClientError as e: