mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
21 lines
552 B
Go
21 lines
552 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
)
|
|
|
|
type MachineMonitor struct {
|
|
Id uint64 `orm:"column(id)" json:"id"`
|
|
MachineId uint64 `orm:"column(machine_id)" json:"machineId"`
|
|
CpuRate float32 `orm:"column(cpu_rate)" json:"cpuRate"`
|
|
MemRate float32 `orm:"column(mem_rate)" json:"memRate"`
|
|
SysLoad string `orm:"column(sys_load)" json:"sysLoad"`
|
|
CreateTime time.Time `orm:"column(create_time)" json:"createTime"`
|
|
}
|
|
|
|
func init() {
|
|
orm.RegisterModelWithPrefix("t_", new(MachineMonitor))
|
|
}
|