2022-09-08 11:39:14 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type MonitorBase struct {
|
|
|
|
BaseModel
|
|
|
|
Cpu float64 `gorm:"type:float" json:"cpu"`
|
|
|
|
|
|
|
|
LoadUsage float64 `gorm:"type:float" json:"loadUsage"`
|
|
|
|
CpuLoad1 float64 `gorm:"type:float" json:"cpuLoad1"`
|
|
|
|
CpuLoad5 float64 `gorm:"type:float" json:"cpuLoad5"`
|
|
|
|
CpuLoad15 float64 `gorm:"type:float" json:"cpuLoad15"`
|
|
|
|
|
|
|
|
Memory float64 `gorm:"type:float" json:"memory"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MonitorIO struct {
|
|
|
|
BaseModel
|
2023-02-09 16:37:03 +08:00
|
|
|
Name string `json:"name"`
|
2022-09-23 17:21:27 +08:00
|
|
|
Read uint64 `json:"read"`
|
|
|
|
Write uint64 `json:"write"`
|
|
|
|
Count uint64 `json:"count"`
|
|
|
|
Time uint64 `json:"time"`
|
2022-09-08 11:39:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type MonitorNetwork struct {
|
|
|
|
BaseModel
|
2023-02-09 16:37:03 +08:00
|
|
|
Name string `json:"name"`
|
|
|
|
Up float64 `gorm:"type:float" json:"up"`
|
|
|
|
Down float64 `gorm:"type:float" json:"down"`
|
2022-09-08 11:39:14 +08:00
|
|
|
}
|