Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct { Nums int32 `json:"nums"` //核心数 Cores int `json:"cores"` //核心数 UsageRate []float64 `json:"usage_rate"` //cpu使用率 }
func GetCPUInfo ¶
type Disk ¶
type Disk struct { Drive string `json:"drive"` //盘符 FS string `json:"fs"` //文件系统 Total uint64 `json:"total"` //总大小 Usable uint64 `json:"usable"` //可用大小 Usage uint64 `json:"usage"` //已用大小 UsageRate float64 `json:"usage_rate"` //已用百分比 }
func GetDiskInfo ¶
type Go ¶
type Host ¶
type Host struct { Name string `json:"name"` //服务器名称 OS string `json:"os"` //操作系统 IP string `json:"ip"` //服务器IP FrameWork string `json:"frame_work"` //系统架构 UpdateTime uint64 `json:"update_time"` //更新时间 BootTime uint64 `json:"boot_time"` //重启时间 }
func GetHostInfo ¶
type Mem ¶
type Mem struct { Total uint64 `json:"total"` Free uint64 `json:"free"` UsedPercent float64 `json:"used_percent"` }
func GetMemInfo ¶
type Net ¶
type Net struct { Name string `json:"name"` BytesSent uint64 `json:"bytes_sent"` BytesRecv uint64 `json:"bytes_recv"` }
func GetNetInfo ¶
Click to show internal directories.
Click to hide internal directories.