21 lines
948 B
Go
21 lines
948 B
Go
package model
|
|
|
|
// MonitorBase 监控_基本信息 monitor_base
|
|
type MonitorBase struct {
|
|
ID int64 `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
|
CreateTime int64 `json:"createTime" gorm:"create_time"` // 创建时间
|
|
CPU float64 `json:"cpu" gorm:"cpu"` // cpu使用率
|
|
LoadUsage float64 `json:"loadUsage" gorm:"load_usage"` // cpu平均使用率
|
|
CPULoad1 float64 `json:"cpuLoad1" gorm:"cpu_load1"` // cpu使用1分钟
|
|
CPULoad5 float64 `json:"cpuLoad5" gorm:"cpu_load5"` // cpu使用5分钟
|
|
CPULoad15 float64 `json:"cpuLoad15" gorm:"cpu_load15"` // cpu使用15分钟
|
|
Memory float64 `json:"memory" gorm:"memory"` // 内存使用率
|
|
NeType string `json:"neType" gorm:"ne_type"` // 网元类型
|
|
NeID string `json:"neId" gorm:"ne_id"` // 网元ID
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*MonitorBase) TableName() string {
|
|
return "monitor_base"
|
|
}
|