« 返回
|
告警事件
编辑任务 #3
名称
类型
HTTP
TCP
PING
PASSIVE(被动心跳)
切换类型后请手动调整 config_json。PASSIVE 需要 token。
启用
是
否
执行周期(秒)
PASSIVE:外部系统应以此周期打心跳;worker 用 interval+grace 判定超时。
PASSIVE 超时判定提示
-
判定公式:
now > last_seen_at + interval_seconds + grace_seconds
config_json(必须是合法 JSON)
{"url": "https://ping.fslc.top/task_edit.php", "body": null, "method": "GET", "headers": {"Accept": "application/json"}, "json_rules": [], "expect_http_code": 200}
PASSIVE 示例:
{"grace_seconds":60}
(默认 60 秒)
TCP: {"host":"127.0.0.1","port":3306}
PING: {"host":"8.8.8.8"}
HTTP 支持 json_rules:path 用 a.b.c;op 支持 ==、!=、contains、in。
保存