Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUstateinfo ¶
type CPUstateinfo struct {
CPUIdle uint64 // time spent in the idle task
CPUTotal uint64 // total of all time fields
CPUPermillage int //usage, 50 meas 5%
// contains filtered or unexported fields
}
CPUstateinfo CPU信息
type CPUstateinfos ¶
type CPUstateinfos struct {
CPUs map[string]*CPUstateinfo
CPUNum int
Avg1min float32
Avg5min float32
Avg15min float32
}
CPUstateinfos 多核CPU信息
type DiskStates ¶
type DiskStates struct {
Device string
FsSpec string
FsFile string
FsVfstype string
BytesAll uint64
BytesUsed uint64
BytesUsedPermillage int
InodesAll uint64
InodesUsed uint64
InodesUsedPermillage int
ReadRequests uint64 // Total number of reads completed successfully.
ReadBytes uint64 // Total number of Bytes read successfully.
WriteRequests uint64 // total number of writes completed successfully.
WriteBytes uint64 // total number of Bytes written successfully.
// contains filtered or unexported fields
}
DiskStates 磁盘状态
type Meminfo ¶
type Meminfo struct {
MemTotal uint64
MemAvailable uint64
MemUsePermillage int //usage, 50 meas 5%
SwapTotal uint64
SwapFree uint64
SwapUsePermillage int //usage, 50 meas 5%
}
Meminfo 内存信息
type NetIf ¶
type NetIf struct {
Iface string
IPs map[int]string
InBytes uint64
InPackages uint64
TotalInBytes uint64
TotalInPackages uint64
OutBytes uint64
OutPackages uint64
TotalOutBytes uint64
TotalOutPackages uint64
// contains filtered or unexported fields
}
NetIf 网卡信息
type NetWorkInfo ¶
NetWorkInfo 网卡信息
type OSinfo ¶
type OSinfo struct {
UpTime int64
StartTime int64
UsePermillage int //usage, 50 meas 5%
Arch string
Os string
KernelVersion string
KernelHostname string
NumCPU int
}
OSinfo 操作系统信息
type SysInfo ¶
type SysInfo struct {
OSEn bool
OS OSinfo
CPUEn bool
CPU CPUstateinfos
MemEn bool
Mem Meminfo
NetEn bool
Net NetWorkInfo
FsEn bool
Fs Fsinfo
ThermalEn bool
Thermal Thermalinfo
PeriodSec int // 任务执行周期,单位是秒
// contains filtered or unexported fields
}
SysInfo 系统监视器的
type TCPInfo ¶
type TCPInfo struct {
TCPErrorStatus uint64
TCPEstablished uint64
TCPSynSent uint64
TCPSynRecv uint64
TCPFinWait1 uint64
TCPFinWait2 uint64
TCPTimewait uint64
TCPClose uint64
TCPCloseWait uint64
TCPLastAck uint64
TCPListen uint64
TCPClosing uint64
TCPConnections uint64 //total
}
TCPInfo tcp信息
Source Files
¶
Click to show internal directories.
Click to hide internal directories.