chore: 统一本地服务器与远程仓库源码
- 合并 main 与 master 历史并以服务器结构为基线 - 保留迁移、数据保留、AWS 账单与部署安全能力 - 建立 SDD 规格和 CI 验证闭环
This commit is contained in:
commit
fd60361d93
460 files changed
+37492
-23871
No files matched your search
@@ -45,32 +45,27 @@ var (
|
||||
{
|
||||
Code: "alert_engine", Name: "告警引擎扫描",
|
||||
Description: "扫描 Agent 指标阈值、主机离线、端口策略与日志告警规则,触发通知与自动恢复",
|
||||
Schedule: "每 30 秒", Category: "monitor", Runnable: false, Enabled: true,
|
||||
Schedule: "每 30 秒", Category: "monitor", Runnable: false, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "middleware_monitor", Name: "中间件监控采集",
|
||||
Description: "直连 Redis/MySQL 等中间件目标采集指标并写入监控库",
|
||||
Schedule: "每 30 秒", Category: "monitor", Runnable: false, Enabled: true,
|
||||
Schedule: "每 30 秒", Category: "monitor", Runnable: false, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "agent_report_cleanup", Name: "Agent 上报清理",
|
||||
Description: "清理 7 天前的 Agent 指标上报原始数据,防止表膨胀",
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
Code: "retention_cleanup", Name: "高频数据保留清理",
|
||||
Description: "按保留策略分批清理 Agent、指标、SNMP、站点拨测和日志数据,并记录受影响行数",
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "audit_log_cleanup", Name: "审计日志清理",
|
||||
Description: "按系统设置中的保留天数清理操作审计、登录日志、终端会话与命令记录",
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "snmp_metrics_cleanup", Name: "SNMP 指标清理",
|
||||
Description: "清理 7 天前的 SNMP 采集指标历史,防止表膨胀",
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "cloud_billing_sync", Name: "云账单同步",
|
||||
Description: "从云账号 AK 拉取昨日账单(按产品+地域),写入云账单管理;当前支持阿里云",
|
||||
Schedule: "每天 10:30", Category: "finops", Runnable: true, Enabled: true,
|
||||
Description: "从云账号 AK 拉取昨日账单(按产品+地域),写入云账单管理;当前支持阿里云和腾讯云", // Logan.Li
|
||||
Schedule: "每天 10:30", Category: "finops", Runnable: true, Enabled: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
@@ -237,4 +232,4 @@ func findDef(code string) (Def, bool) {
|
||||
}
|
||||
}
|
||||
return Def{}, false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user