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" 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]