Files
aiops/agent/model/model_proctop.go
T
attacker d656520428 feat: v0.34 健康探针(Architecture B) + Agent v2.1 + 端口监控 + 告警联系人重构
- v0.31: AlertContact 重构(channel_type下拉+webhook_url替代三分立字段)
- v0.32: Agent ProcessTop 增强(cmdline/user/cpu_pct/mem_pct)
- v0.33: 端口监控 Tab(监听端口自动发现+down联动告警)
- v0.34: 健康探针(Agent本地执行HTTP/TCP/Exec→结果随心跳上报)
- Agent新增: ContextSwitch/FD/HealthProbe采集器
- 后端新增: health_probe handler + Agent model扩展
- HostMonitor新增Tab: 健康探针/端口监控
2026-06-24 19:18:10 +08:00

15 lines
639 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
// ProcessStat 单个进程统计(TOP N 采集)— 阿里云风格
type ProcessStat struct {
PID int `json:"pid"`
Name string `json:"name"` // 进程名(comm)
Cmdline string `json:"cmdline"` // 完整命令行
User string `json:"user"` // 运行用户
CPUPct float64 `json:"cpu_pct"` // CPU 使用率 (%)
MemPct float64 `json:"mem_pct"` // 内存使用率 (%)
MemoryMB float64 `json:"memory_mb"` // 物理内存 (MB)
FDCount int `json:"fd_count"` // 打开的文件句柄数
Threads int `json:"threads"` // 线程数
}