2023-03-23 18:03:09 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
// NodeState 节点状态信息
|
|
|
|
type NodeState struct {
|
|
|
|
Uptime uint64 `xorm:"BIGINT pk" json:"uptime,omitempty"`
|
2023-04-24 15:21:17 +08:00
|
|
|
NodeGuid string `xorm:"varchar(100) pk" json:"nodeGuid,omitempty"`
|
|
|
|
NodeName string `xorm:"varchar(100)" json:"nodeName"`
|
2023-03-23 18:03:09 +08:00
|
|
|
CPU float64 `xorm:"DECIMAL(18,4)" json:"cpu,omitempty"`
|
|
|
|
MemUsed uint64 `xorm:"BIGINT" json:"memUsed,omitempty"`
|
|
|
|
SwapUsed uint64 `xorm:"BIGINT" json:"swapUsed,omitempty"`
|
|
|
|
DiskUsed uint64 `xorm:"BIGINT" json:"diskUsed,omitempty"`
|
|
|
|
NetInTransfer uint64 `xorm:"BIGINT" json:"netInTransfer,omitempty"`
|
|
|
|
NetOutTransfer uint64 `xorm:"BIGINT" json:"netOutTransfer,omitempty"`
|
|
|
|
NetInSpeed uint64 `xorm:"BIGINT" json:"netInSpeed,omitempty"`
|
|
|
|
NetOutSpeed uint64 `xorm:"BIGINT" json:"netOutSpeed,omitempty"`
|
|
|
|
Load1 float64 `xorm:"DECIMAL(18,4)" json:"load1,omitempty"`
|
|
|
|
Load5 float64 `xorm:"DECIMAL(18,4)" json:"load5,omitempty"`
|
|
|
|
Load15 float64 `xorm:"DECIMAL(18,4)" json:"load15,omitempty"`
|
|
|
|
TcpConnCount uint64 `xorm:"BIGINT" json:"tcpConnCount,omitempty"`
|
|
|
|
UdpConnCount uint64 `xorm:"BIGINT" json:"udpConnCount,omitempty"`
|
|
|
|
ProcessCount uint64 `xorm:"BIGINT" json:"processCount,omitempty"`
|
|
|
|
}
|