fix: Backend SystemStat 添加 Uptime 字段,JSON tag 对齐

This commit is contained in:
attacker committed 2026-06-19 01:10:46 +00:00
1 parent 5949ec5d0c
commit feb8530999
1 file changed
+4 -3
+4 -3
View File
@@ -71,10 +71,11 @@ type AgentReportRequest struct {
System *SystemStat `json:"system,omitempty"` // 系统信息(首次/变更时上报) System *SystemStat `json:"system,omitempty"` // 系统信息(首次/变更时上报)
} }
// SystemStat 系统静态信息(OS/内核等)// Logan.Li // SystemStat 系统静态信息(OS/内核/运行时长)// Logan.Li
type SystemStat struct { type SystemStat struct {
OSVersion string `json:"os_version"` // OS 版本 (如 "Ubuntu 22.04") OSVersion string `json:"os_version"` // OS 版本 (如 "Ubuntu 22.04")
Kernel string `json:"kernel"` // 内核版本 Kernel string `json:"kernel"` // 内核版本
Uptime int64 `json:"uptime"` // 运行秒数
} }
type CPUMetric struct { type CPUMetric struct {