package model // NetworkStat 网络相关指标 type NetworkStat struct { TCPEstablished int `json:"tcp_established"` // ESTABLISHED 连接数 TCPTimeWait int `json:"tcp_time_wait"` // TIME_WAIT 连接数 TCPTotal int `json:"tcp_total"` // TCP 总连接数 NicName string `json:"nic_name"` // 主网卡名 NetRxBPS float64 `json:"net_rx_bps"` // 网卡接收速率 (bytes/s) NetTxBPS float64 `json:"net_tx_bps"` // 网卡发送速率 (bytes/s) } // DiskIOStat 磁盘 IO 相关指标 type DiskIOStat struct { ReadBPS float64 `json:"read_bps"` // 读取速率 (bytes/s) WriteBPS float64 `json:"write_bps"` // 写入速率 (bytes/s) ReadIOPS float64 `json:"read_iops"` // 读取 IOPS (count/s) WriteIOPS float64 `json:"write_iops"` // 写入 IOPS (count/s) } // SystemStat 系统信息(启动时采集一次) type SystemStat struct { OSVersion string `json:"os_version"` // OS 版本 (如 "Ubuntu 22.04") Kernel string `json:"kernel"` // 内核版本 Uptime int64 `json:"uptime"` // 运行秒数 UlimitNofile int64 `json:"ulimit_nofile"` // ulimit -n (最大文件描述符) UlimitNproc int64 `json:"ulimit_nproc"` // ulimit -u (最大进程数) }