feat: add conditions parameter

This commit is contained in:
Julien Malka 2024-12-07 23:45:20 +01:00
parent 22ca1813ff
commit 782037348d
No known key found for this signature in database
GPG key ID: 6FC74C847011FD83

View file

@ -696,6 +696,7 @@ class UptimeKumaApi(object):
upsideDown: bool = False, upsideDown: bool = False,
notificationIDList: list = None, notificationIDList: list = None,
httpBodyEncoding: str = "json", httpBodyEncoding: str = "json",
conditions = "[]",
# HTTP, KEYWORD, JSON_QUERY, REAL_BROWSER # HTTP, KEYWORD, JSON_QUERY, REAL_BROWSER
url: str = None, url: str = None,
@ -808,6 +809,7 @@ class UptimeKumaApi(object):
"resendInterval": resendInterval, "resendInterval": resendInterval,
"description": description, "description": description,
"httpBodyEncoding": httpBodyEncoding, "httpBodyEncoding": httpBodyEncoding,
"conditions": conditions,
} }
if parse_version(self.version) >= parse_version("1.22"): if parse_version(self.version) >= parse_version("1.22"):