mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-15 09:18:59 +08:00
30 lines
569 B
Go
30 lines
569 B
Go
package model
|
|
|
|
type MonitorBase struct {
|
|
BaseModel
|
|
Cpu float64 `json:"cpu"`
|
|
|
|
LoadUsage float64 `json:"loadUsage"`
|
|
CpuLoad1 float64 `json:"cpuLoad1"`
|
|
CpuLoad5 float64 `json:"cpuLoad5"`
|
|
CpuLoad15 float64 `json:"cpuLoad15"`
|
|
|
|
Memory float64 `json:"memory"`
|
|
}
|
|
|
|
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"`
|
|
}
|