Update signl4.py

pull/1374/head
Ron 2025-07-30 12:47:48 +02:00
parent 71650b141e
commit 777625457f
1 changed files with 11 additions and 7 deletions

View File

@ -102,9 +102,15 @@ class NotifySIGNL4(NotifyBase):
}, },
}) })
def __init__(self, secret, service=None, location=None, def __init__(self,
alerting_scenario=None, filtering=None, secret,
external_id=None, status=None, **kwargs): service=None,
location=None,
alerting_scenario=None,
filtering=None,
external_id=None,
status=None,
**kwargs):
""" """
Initialize SIGNL4 Object Initialize SIGNL4 Object
""" """
@ -242,9 +248,7 @@ class NotifySIGNL4(NotifyBase):
""" """
# Define any URL parameters # Define any URL parameters
params = { params = {}
"region": "none",
}
if self.service is not None: if self.service is not None:
params["service"] = self.service params["service"] = self.service
@ -267,7 +271,7 @@ class NotifySIGNL4(NotifyBase):
# Extend our parameters # Extend our parameters
params.update(self.url_parameters(privacy=privacy, *args, **kwargs)) params.update(self.url_parameters(privacy=privacy, *args, **kwargs))
url = "{schema}://{secret}/" url = "{schema}://{secret}"
return url.format( return url.format(
schema=self.secure_protocol, schema=self.secure_protocol,