修改ScNodeAvailInfo
Former-commit-id: b795e3f9bec6c460059dd8c6c9e182c98fd079b8
This commit is contained in:
parent
f70430757d
commit
d6d955a68c
|
@ -39,22 +39,22 @@ type (
|
||||||
}
|
}
|
||||||
|
|
||||||
ScNodeAvailInfo struct {
|
ScNodeAvailInfo struct {
|
||||||
Id int64 `db:"id"` // id
|
Id int64 `db:"id"` // id
|
||||||
NodeName sql.NullString `db:"node_name"` // 节点名称
|
NodeName string `db:"node_name"` // 节点名称
|
||||||
CpuTotal sql.NullInt64 `db:"cpu_total"` // cpu核数
|
CpuTotal int64 `db:"cpu_total"` // cpu核数
|
||||||
CpuUsable sql.NullFloat64 `db:"cpu_usable"` // cpu可用率
|
CpuUsable float64 `db:"cpu_usable"` // cpu可用率
|
||||||
DiskTotal sql.NullInt64 `db:"disk_total"` // 磁盘空间
|
DiskTotal int64 `db:"disk_total"` // 磁盘空间
|
||||||
DiskAvail sql.NullInt64 `db:"disk_avail"` // 磁盘可用空间
|
DiskAvail int64 `db:"disk_avail"` // 磁盘可用空间
|
||||||
MemTotal sql.NullInt64 `db:"mem_total"` // 内存总数
|
MemTotal int64 `db:"mem_total"` // 内存总数
|
||||||
MemAvail sql.NullInt64 `db:"mem_avail"` // 内存可用数
|
MemAvail int64 `db:"mem_avail"` // 内存可用数
|
||||||
GpuTotal sql.NullInt64 `db:"gpu_total"` // gpu总数
|
GpuTotal int64 `db:"gpu_total"` // gpu总数
|
||||||
GpuAvail sql.NullInt64 `db:"gpu_avail"` // gpu可用数
|
GpuAvail int64 `db:"gpu_avail"` // gpu可用数
|
||||||
ParticipantId int64 `db:"participant_id"` // 集群静态信息id
|
ParticipantId int64 `db:"participant_id"` // 集群静态信息id
|
||||||
DeletedFlag int64 `db:"deleted_flag"` // 是否删除
|
DeletedFlag int64 `db:"deleted_flag"` // 是否删除
|
||||||
CreatedBy sql.NullInt64 `db:"created_by"` // 创建人
|
CreatedBy sql.NullInt64 `db:"created_by"` // 创建人
|
||||||
CreatedTime time.Time `db:"created_time"` // 创建时间
|
CreatedTime time.Time `db:"created_time"` // 创建时间
|
||||||
UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人
|
UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人
|
||||||
UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间
|
UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue