forked from DGNum/uptime-kuma-api
feat: add conditions parameter
This commit is contained in:
parent
22ca1813ff
commit
782037348d
1 changed files with 2 additions and 0 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue