- 后端: NotifyChannel 模型新增 feishu 类型, FeishuWebhookConfig - 后端: TestNotifyChannel 真实发送飞书测试消息(文本格式) - 后端: 告警引擎触发/恢复时自动发送飞书通知(sendFeishuAlert/sendFeishuRecovery) - 后端: AlertEngine 新增 tcp_time_wait/tcp_close_wait/service_process 指标检测 - 后端: NetworkStatModel 新增 TCPCloseWait 字段 - 后端: QuickSetupRules 一键创建6条告警规则(CPU/内存/磁盘/TIME_WAIT/CLOSE_WAIT/进程) - 后端: 注册 /alerts/quick-setup 路由 - 前端: AlertChannelDialog 新增飞书类型选项 - 前端: helpers 新增 getChannelIcon/getChannelTypeLabel 支持 feishu/dingtalk/wechat
11 lines
331 B
Go
11 lines
331 B
Go
package model
|
|
|
|
// ProcessStat 单个进程统计(TOP N 采集)
|
|
type ProcessStat struct {
|
|
PID int `json:"pid"`
|
|
Name string `json:"name"`
|
|
MemoryMB float64 `json:"memory_mb"` // 物理内存 (MB)
|
|
FDCount int `json:"fd_count"` // 打开的文件句柄数
|
|
Threads int `json:"threads"` // 线程数
|
|
}
|