index

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 CountDb

func CountDb(condArr map[string]string) int64

统计db数量

Types

type DbStatus

type DbStatus struct {
	Id                   int    `orm:"pk;column(id);"`
	Asset_Id             int    `orm:"column(asset_id);"`
	Asset_Type           int    `orm:"column(asset_type);"`
	Host                 string `orm:"column(host);"`
	Port                 string `orm:"column(port);"`
	Alias                string `orm:"column(alias);"`
	Role                 string `orm:"column(role);"`
	Version              string `orm:"column(version);"`
	Connect              int    `orm:"column(connect);"`
	Connect_Tips         string `orm:"column(connect_tips);"`
	Sess_Total           int    `orm:"column(sessions);"`
	Sess_Total_Tips      string `orm:"column(sessions_tips);"`
	Sess_Actives         int    `orm:"column(actives);"`
	Sess_Actives_Tips    string `orm:"column(actives_tips);"`
	Sess_Waits           int    `orm:"column(waits);"`
	Sess_Waits_Tips      string `orm:"column(waits_tips);"`
	Process              int    `orm:"column(process);"`
	Process_Tips         string `orm:"column(process_tips);"`
	Repl                 int    `orm:"column(repl);"`
	Repl_Tips            string `orm:"column(repl_tips);"`
	Repl_Delay           int    `orm:"column(repl_delay);"`
	Repl_Delay_Tips      string `orm:"column(repl_delay_tips);"`
	Tablespace           int    `orm:"column(tablespace);"`
	Tablespace_Tips      string `orm:"column(tablespace_tips);"`
	Diskgroup            int    `orm:"column(diskgroup);"`
	Diskgroup_Tips       string `orm:"column(diskgroup_tips);"`
	Flashback_Space      int    `orm:"column(flashback_space);"`
	Flashback_Space_Tips string `orm:"column(flashback_space_tips);"`
	Load                 int    `orm:"column(load);"`
	Load_Tips            string `orm:"column(load_tips);"`
	Cpu                  int    `orm:"column(cpu);"`
	Cpu_Tips             string `orm:"column(cpu_tips);"`
	Memory               int    `orm:"column(memory);"`
	Memory_Tips          string `orm:"column(memory_tips);"`
	IO                   int    `orm:"column(io);"`
	IO_Tips              string `orm:"column(io_tips);"`
	Net                  int    `orm:"column(net);"`
	Net_Tips             string `orm:"column(net_tips);"`
	Score                string `orm:"column(score);"`
	Created              int64  `orm:"column(created);"`
}

func ListDbStatus

func ListDbStatus(condArr map[string]string, page int, offset int) (num int64, err error, db []DbStatus)

获取db状态列表

func (*DbStatus) TableName

func (this *DbStatus) TableName() string

Jump to

Keyboard shortcuts

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