mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-15 04:00:00 +08:00
16 lines
453 B
Go
16 lines
453 B
Go
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"`
|
|
}
|