clientmoni.go 749 B

123456789101112131415161718192021
  1. package model
  2. import "time"
  3. //ClientMoni model for performance test container cpu monitor
  4. type ClientMoni struct {
  5. ID int `json:"id" gorm:"AUTO_INCREMENT;primary_key;" form:"id"`
  6. ScriptID int `json:"script_id" form:"script_id"`
  7. ReportSuID int `json:"report_su_id" form:"report_su_id"`
  8. JobName string `json:"job_name" form:"job_name"`
  9. JobNameAll string `json:"job_name_all" form:"job_name_all"`
  10. CPUUsed string `json:"cpu_used" form:"cpu_used"`
  11. ElapsdTime int `json:"elapsd_time"`
  12. Ctime time.Time `json:"ctime" form:"ctime"`
  13. Mtime time.Time `json:"mtime" form:"mtime"`
  14. }
  15. //TableName table name of client moni model
  16. func (c ClientMoni) TableName() string {
  17. return "client_moni"
  18. }