modify: 文件留存限制

This commit is contained in:
2026-08-03 15:05:35 +08:00
parent cbd6d78403
commit 41acfb4b2b
+10
View File
@@ -14,3 +14,13 @@ tags = ["aibox_sophon_adapter", "sophon", "adapter"]
interval = 5 # 设备上报间隔(秒) interval = 5 # 设备上报间隔(秒)
timeout = 15 # 超时阈值(秒),超过此时间未收到心跳视为离线 timeout = 15 # 超时阈值(秒),超过此时间未收到心跳视为离线
check_interval = 10 # 服务端检查离线设备的间隔(秒) check_interval = 10 # 服务端检查离线设备的间隔(秒)
# 外部 MQTT 转发配置 — 将心跳数据转发到指定的外部 MQTT Broker
[worker.mqtt_forward]
enabled = true
uri = "mqtt://admin:Mixc%402021@dg.datagoo.cn:48081" # %40 是 @ 的 URL 编码
topic = "/board_ping" # 转发目标主题
# 告警记录保留策略 — 超过 max_records 条时自动清理最早的记录(含关联视频文件)
[worker.alarm_retention]
max_records = 100 # 最多保留的告警记录数,设为 0 表示不限制