mssql

package
v0.0.0-...-1489327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountDisk

func CountDisk(condArr map[string]string) int64

统计数量

func CountDiskIO

func CountDiskIO(condArr map[string]string) int64

统计数量

func CountOS

func CountOS(condArr map[string]string) int64

统计数量

func GetCpuRateByOsId

func GetCpuRateByOsId(os_id int) int64

for oracle dr screen

func GetDiskRateByOsId

func GetDiskRateByOsId(os_id int) float64

func GetInodeRateByOsId

func GetInodeRateByOsId(os_id int) float64

func GetMemRateByOsId

func GetMemRateByOsId(os_id int) float64

func GetSwapRateByOsId

func GetSwapRateByOsId(os_id int) float64

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_Shared           string `orm:"column(mem_shared);"`
	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

func ListOSStatus(condArr map[string]string, page int, offset int) (num int64, err error, os []OS)

获取OS状态列表

func (*OS) TableName

func (this *OS) TableName() string

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);"`
}

func ListDiskStatus

func ListDiskStatus(condArr map[string]string, page int, offset int) (num int64, err error, disk []OSDisk)

获取OS Disk状态列表

func (*OSDisk) TableName

func (this *OSDisk) TableName() string

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);"`
}

func ListDiskIOStatus

func ListDiskIOStatus(condArr map[string]string, page int, offset int) (num int64, err error, diskio []OSDiskIO)

获取OS Disk IO状态列表

func (*OSDiskIO) TableName

func (this *OSDiskIO) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL