2024-07-23 14:48:37 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type MonitorBase struct {
|
|
|
|
BaseModel
|
2024-08-14 10:43:32 +08:00
|
|
|
Cpu float64 `json:"cpu"`
|
2024-07-23 14:48:37 +08:00
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
LoadUsage float64 `json:"loadUsage"`
|
|
|
|
CpuLoad1 float64 `json:"cpuLoad1"`
|
|
|
|
CpuLoad5 float64 `json:"cpuLoad5"`
|
|
|
|
CpuLoad15 float64 `json:"cpuLoad15"`
|
2024-07-23 14:48:37 +08:00
|
|
|
|
2024-08-14 10:43:32 +08:00
|
|
|
Memory float64 `json:"memory"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
2024-08-14 10:43:32 +08:00
|
|
|
Up float64 `json:"up"`
|
|
|
|
Down float64 `json:"down"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|