Documentation
¶
Index ¶
- func CountDisk(condArr map[string]string) int64
- func CountDiskIO(condArr map[string]string) int64
- func CountOS(condArr map[string]string) int64
- func GetCpuRateByOsId(os_id int) int64
- func GetDiskRateByOsId(os_id int) float64
- func GetInodeRateByOsId(os_id int) float64
- func GetMemRateByOsId(os_id int) float64
- func GetSwapRateByOsId(os_id int) float64
- type OS
- type OSDisk
- type OSDiskIO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiskRateByOsId ¶
func GetInodeRateByOsId ¶
func GetMemRateByOsId ¶
func GetSwapRateByOsId ¶
Types ¶
type OS ¶
type OS struct { Id int `orm:"pk;column(id);"` Os_Id int `orm:"column(os_id);"` Host string `orm:"column(host);"` Alias string `orm:"column(alias);"` Connect int `orm:"column(connect);"` Hostname string `orm:"column(hostname);"` Kernel string `orm:"column(kernel);"` System_Date string `orm:"column(system_date);"` System_Uptime string `orm:"column(system_uptime);"` Process string `orm:"column(process);"` Load_1 string `orm:"column(load_1);"` Load_5 string `orm:"column(load_5);"` Load_15 string `orm:"column(load_15);"` Cpu_User_Time string `orm:"column(cpu_user_time);"` Cpu_System_Time string `orm:"column(cpu_system_time);"` Cpu_Idle_Time string `orm:"column(cpu_idle_time);"` Swap_Total string `orm:"column(swap_total);"` Swap_Avail string `orm:"column(swap_avail);"` Mem_Total string `orm:"column(mem_total);"` Mem_Avail string `orm:"column(mem_avail);"` Mem_Free string `orm:"column(mem_free);"` Mem_Buffered string `orm:"column(mem_buffered);"` Mem_Cached string `orm:"column(mem_cached);"` Mem_Usage_Rate string `orm:"column(mem_usage_rate);"` Mem_Available string `orm:"column(mem_available);"` Disk_IO_Reads_Total string `orm:"column(disk_io_reads_total);"` Disk_IO_Writes_Total string `orm:"column(disk_io_writes_total);"` Net_In_Bytes_Total string `orm:"column(net_in_bytes_total);"` Net_Out_Bytes_Total string `orm:"column(net_out_bytes_total);"` Created int64 `orm:"column(created);"` }
func ListOSStatus ¶
获取OS状态列表
type OSDisk ¶
type OSDisk struct { Id int `orm:"pk;column(id);"` Os_Id int `orm:"column(os_id);"` Host string `orm:"column(host);"` Alias string `orm:"column(alias);"` Mounted string `orm:"column(mounted);"` Total_Size string `orm:"column(total_size);"` Used_Size string `orm:"column(used_size);"` Avail_Size string `orm:"column(avail_size);"` Used_Rate string `orm:"column(used_rate);"` Created int64 `orm:"column(created);"` }
type OSDiskIO ¶
type OSDiskIO struct { Id int `orm:"pk;column(id);"` Os_Id int `orm:"column(os_id);"` Host string `orm:"column(host);"` Alias string `orm:"column(alias);"` Fdisk string `orm:"column(fdisk);"` Disk_IO_Reads string `orm:"column(disk_io_reads);"` Disk_IO_Writes string `orm:"column(disk_io_writes);"` Created int64 `orm:"column(created);"` }
Click to show internal directories.
Click to hide internal directories.