fix: 监控数据本机#号存入

This commit is contained in:
TsMask
2023-11-01 18:19:20 +08:00
parent 67c78ba9a1
commit f3437dd555
4 changed files with 24 additions and 14 deletions

View File

@@ -25,8 +25,8 @@ type MonitorController struct {
// GET /load
func (s *MonitorController) Load(c *gin.Context) {
var querys struct {
// 数据类型all/cpu/memory/io/network
Type string `form:"type" binding:"required,oneof=all cpu memory io network"`
// 数据类型all/load/cpu/memory/io/network
Type string `form:"type" binding:"required,oneof=all load cpu memory io network"`
// 开始时间
StartTime int64 `form:"startTime" binding:"required"`
// 结束时间