mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
453 B
17 lines
453 B
4 months ago
|
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"`
|
||
|
}
|