mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
21 lines
513 B
Go
21 lines
513 B
Go
package system
|
|
|
|
import "beszel/internal/entities/container"
|
|
|
|
type SystemInfo struct {
|
|
Cores int `json:"c"`
|
|
Threads int `json:"t"`
|
|
CpuModel string `json:"m"`
|
|
// Os string `json:"o"`
|
|
Uptime uint64 `json:"u"`
|
|
Cpu float64 `json:"cpu"`
|
|
MemPct float64 `json:"mp"`
|
|
DiskPct float64 `json:"dp"`
|
|
}
|
|
|
|
type SystemData struct {
|
|
Stats SystemStats `json:"stats"`
|
|
Info SystemInfo `json:"info"`
|
|
Containers []container.ContainerStats `json:"container"`
|
|
}
|