mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
[新增] 对接 Uptime Kuma
This commit is contained in:
@@ -209,6 +209,7 @@ func SyncToUptimeKuma() error {
|
|||||||
"ignoreTls": false,
|
"ignoreTls": false,
|
||||||
"accepted_statuscodes": []string{"200-299"},
|
"accepted_statuscodes": []string{"200-299"},
|
||||||
"dns_resolve_type": "A",
|
"dns_resolve_type": "A",
|
||||||
|
"conditions": []any{},
|
||||||
}
|
}
|
||||||
addAck, err := client.Emit("add", monitorPayload)
|
addAck, err := client.Emit("add", monitorPayload)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -268,6 +269,7 @@ func SyncToUptimeKuma() error {
|
|||||||
"ignoreTls": false,
|
"ignoreTls": false,
|
||||||
"accepted_statuscodes": []string{"200-299"},
|
"accepted_statuscodes": []string{"200-299"},
|
||||||
"dns_resolve_type": "A",
|
"dns_resolve_type": "A",
|
||||||
|
"conditions": []any{},
|
||||||
}
|
}
|
||||||
editAck, err := client.Emit("editMonitor", monitorPayload)
|
editAck, err := client.Emit("editMonitor", monitorPayload)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user