fix: Backend SystemStat 添加 Uptime 字段,JSON tag 对齐
This commit is contained in:
1 parent
5949ec5d0c
commit
feb8530999
1 file changed
+4
-3
@@ -71,10 +71,11 @@ type AgentReportRequest struct {
|
||||
System *SystemStat `json:"system,omitempty"` // 系统信息(首次/变更时上报)
|
||||
}
|
||||
|
||||
// SystemStat 系统静态信息(OS/内核等)// Logan.Li
|
||||
// SystemStat 系统静态信息(OS/内核/运行时长)// Logan.Li
|
||||
type SystemStat struct {
|
||||
OSVersion string `json:"os_version"` // OS 版本 (如 "Ubuntu 22.04")
|
||||
Kernel string `json:"kernel"` // 内核版本
|
||||
OSVersion string `json:"os_version"` // OS 版本 (如 "Ubuntu 22.04")
|
||||
Kernel string `json:"kernel"` // 内核版本
|
||||
Uptime int64 `json:"uptime"` // 运行秒数
|
||||
}
|
||||
|
||||
type CPUMetric struct {
|
||||
|
||||
Reference in new issue
Block a user