mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
move application code into beszel folder
This commit is contained in:
20
beszel/internal/entities/system/system.go
Normal file
20
beszel/internal/entities/system/system.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user