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