mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
first
This commit is contained in:
19
models/machine_monitor.go
Normal file
19
models/machine_monitor.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/orm"
|
||||
"time"
|
||||
)
|
||||
|
||||
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))
|
||||
}
|
||||
Reference in New Issue
Block a user