mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat: 监控显示优化
This commit is contained in:
@@ -22,18 +22,30 @@ type SWAP struct {
|
||||
Free []string `json:"free"`
|
||||
}
|
||||
|
||||
// Network 网卡数据
|
||||
type Network struct {
|
||||
Name string `json:"name"`
|
||||
Sent []string `json:"sent"`
|
||||
Recv []string `json:"recv"`
|
||||
Tx []string `json:"tx"`
|
||||
Rx []string `json:"rx"`
|
||||
}
|
||||
|
||||
type MonitorData struct {
|
||||
Times []string `json:"times"`
|
||||
Load Load `json:"load"`
|
||||
CPU CPU `json:"cpu"`
|
||||
Mem Mem `json:"mem"`
|
||||
SWAP SWAP `json:"swap"`
|
||||
Net Network `json:"net"`
|
||||
// DiskIO 磁盘IO数据
|
||||
type DiskIO struct {
|
||||
Name string `json:"name"`
|
||||
ReadBytes []string `json:"read_bytes"`
|
||||
WriteBytes []string `json:"write_bytes"`
|
||||
ReadSpeed []string `json:"read_speed"`
|
||||
WriteSpeed []string `json:"write_speed"`
|
||||
}
|
||||
|
||||
type MonitorDetail struct {
|
||||
Times []string `json:"times"`
|
||||
Load Load `json:"load"`
|
||||
CPU CPU `json:"cpu"`
|
||||
Mem Mem `json:"mem"`
|
||||
SWAP SWAP `json:"swap"`
|
||||
Net []Network `json:"net"`
|
||||
DiskIO []DiskIO `json:"disk_io"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user