From b67a79d95c9e66282c307737582938054d511eb7 Mon Sep 17 00:00:00 2001 From: Ciaran Moran Date: Mon, 20 Jan 2025 15:23:28 +0000 Subject: [PATCH 1/2] update zenduty endpoint --- pyth_observer/zenduty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyth_observer/zenduty.py b/pyth_observer/zenduty.py index 0668a2d..cae07d3 100644 --- a/pyth_observer/zenduty.py +++ b/pyth_observer/zenduty.py @@ -9,7 +9,7 @@ async def send_zenduty_alert(alert_identifier, message, resolved=False, summary=""): - url = f"https://www.zenduty.com/api/events/{os.environ['ZENDUTY_INTEGRATION_KEY']}/" + url = f"https://events.zenduty.com/api/events/{os.environ['ZENDUTY_INTEGRATION_KEY']}/" # Use a hash of the alert_identifier as a unique id for the alert. # Take the first 32 characters due to length limit of the api. entity_id = hashlib.sha256(alert_identifier.encode("utf-8")).hexdigest()[:32] From a7db6303534ec7a12270142d19a7affe3a909f80 Mon Sep 17 00:00:00 2001 From: Ciaran Moran Date: Mon, 20 Jan 2025 17:53:12 +0000 Subject: [PATCH 2/2] bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2523f04..690003d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ ignore_missing_imports = true [tool.poetry] name = "pyth-observer" -version = "0.3.3" +version = "0.3.4" description = "Alerts and stuff" authors = [] readme = "README.md"