2024-07-23 14:48:37 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type MonitorSearch struct {
|
|
|
|
Param string `json:"param" validate:"required,oneof=all cpu memory load io network"`
|
|
|
|
Info string `json:"info"`
|
|
|
|
StartTime time.Time `json:"startTime"`
|
|
|
|
EndTime time.Time `json:"endTime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MonitorData struct {
|
|
|
|
Param string `json:"param" validate:"required,oneof=cpu memory load io network"`
|
|
|
|
Date []time.Time `json:"date"`
|
|
|
|
Value []interface{} `json:"value"`
|
|
|
|
}
|
2024-08-19 18:04:43 +08:00
|
|
|
|
|
|
|
type MonitorSetting struct {
|
|
|
|
MonitorStatus string `json:"monitorStatus"`
|
|
|
|
MonitorStoreDays string `json:"monitorStoreDays"`
|
|
|
|
MonitorInterval string `json:"monitorInterval"`
|
|
|
|
DefaultNetwork string `json:"defaultNetwork"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MonitorSettingUpdate struct {
|
|
|
|
Key string `json:"key" validate:"required,oneof=MonitorStatus MonitorStoreDays MonitorInterval DefaultNetwork"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|