mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-20 14:29:24 +08:00
46 lines
1.2 KiB
Go
46 lines
1.2 KiB
Go
package model
|
|
|
|
type MonitorBase struct {
|
|
BaseModel
|
|
Cpu float64 `json:"cpu"`
|
|
TopCPU string `json:"topCPU"`
|
|
TopCPUItems interface{} `gorm:"-" json:"topCPUItems"`
|
|
|
|
Memory float64 `json:"memory"`
|
|
TopMem string `json:"topMem"`
|
|
TopMemItems interface{} `gorm:"-" json:"topMemItems"`
|
|
|
|
LoadUsage float64 `json:"loadUsage"`
|
|
CpuLoad1 float64 `json:"cpuLoad1"`
|
|
CpuLoad5 float64 `json:"cpuLoad5"`
|
|
CpuLoad15 float64 `json:"cpuLoad15"`
|
|
}
|
|
|
|
type MonitorIO struct {
|
|
BaseModel
|
|
Name string `json:"name"`
|
|
Read uint64 `json:"read"`
|
|
Write uint64 `json:"write"`
|
|
Count uint64 `json:"count"`
|
|
Time uint64 `json:"time"`
|
|
}
|
|
|
|
type MonitorNetwork struct {
|
|
BaseModel
|
|
Name string `json:"name"`
|
|
Up float64 `json:"up"`
|
|
Down float64 `json:"down"`
|
|
}
|
|
|
|
type MonitorGPU struct {
|
|
BaseModel
|
|
ProductName string `json:"productName"`
|
|
GPUUtil float64 `json:"gpuUtil"`
|
|
Temperature float64 `json:"temperature"`
|
|
PowerDraw float64 `json:"powerDraw"`
|
|
MaxPowerLimit float64 `json:"maxPowerLimit"`
|
|
MemUsed float64 `json:"memUsed"`
|
|
MemTotal float64 `json:"memTotal"`
|
|
FanSpeed int `json:"fanSpeed"`
|
|
Processes string `json:"processes"`
|
|
}
|