oracle

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertBasicInfo

func AlertBasicInfo(mysql *xorm.Engine, db_id int)

func AlertConnect

func AlertConnect(mysql *xorm.Engine, db_id int)

func AlertDiskgroups

func AlertDiskgroups(mysql *xorm.Engine, db_id int)

func AlertTablespaces

func AlertTablespaces(mysql *xorm.Engine, db_id int)

func CheckExpression

func CheckExpression(tri common.Trigger, item_value string) int

func Check_Item_Status

func Check_Item_Status(mysql *xorm.Engine, db_id int, trigger_type string, item_name string, item_value string)

func ExecTriggers

func ExecTriggers(mysql *xorm.Engine, db_id int, trigger_type string, item_name string, item_value string)

func GatherBasicInfo

func GatherBasicInfo(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GatherDbStatus

func GatherDbStatus(mysql *xorm.Engine, db_id int)

func GatherDbTime

func GatherDbTime(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GatherDiskgroups

func GatherDiskgroups(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GatherMetricValue

func GatherMetricValue(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GatherRedo

func GatherRedo(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GatherTablespaces

func GatherTablespaces(db *sql.DB, mysql *xorm.Engine, db_id int, host string, port int, alias string)

func GenerateOracleDrStats

func GenerateOracleDrStats(wg *sync.WaitGroup, mysql *xorm.Engine, dis common.Dr)

func GenerateOracleStats

func GenerateOracleStats(wg *sync.WaitGroup, mysql *xorm.Engine, db_id int, host string, port int, alias string, is_alert int)

func GeneratePrimary

func GeneratePrimary(mysql *xorm.Engine, dr_id int, P godror.ConnectionParams, db_id int)

func GenerateStandby

func GenerateStandby(mysql *xorm.Engine, dr_id int, p_pri godror.ConnectionParams, p_sta godror.ConnectionParams, db_id int)

func GetBufferCacheHit

func GetBufferCacheHit(db *sql.DB) int

func GetColumnValue

func GetColumnValue(mysql *xorm.Engine, column string, db_id int) string

func GetConnect

func GetConnect(mysql *xorm.Engine, db_id int) string

func GetCurrentInstanceNumber

func GetCurrentInstanceNumber(db *sql.DB) int

func GetDbtimeBySCN

func GetDbtimeBySCN(P godror.ConnectionParams, scn int64) (string, error)

func GetDgDelay

func GetDgDelay(mysql *xorm.Engine, db_id int) string

func GetDsn

func GetDsn(db *xorm.Engine, db_id int, asset_type int) (string, error)

func GetFlashbackUsage

func GetFlashbackUsage(db *sql.DB) string

func GetLastSnapId

func GetLastSnapId(db *sql.DB) int

func GetLogPerSecond

func GetLogPerSecond(db *sql.DB) string

func GetMaxProcesses

func GetMaxProcesses(db *sql.DB) int

func GetMaxTablespaceRate

func GetMaxTablespaceRate(mysql *xorm.Engine, db_id int) string

func GetMrpStatus

func GetMrpStatus(mysql *xorm.Engine, db_id int) string

func GetProcesses

func GetProcesses(db *sql.DB) int

func GetQPS

func GetQPS(db *sql.DB) int

func GetRestart

func GetRestart(mysql *xorm.Engine, db_id int) string

func GetSessionActive

func GetSessionActive(db *sql.DB) int

func GetSessionTotal

func GetSessionTotal(db *sql.DB) int

func GetSessionWait

func GetSessionWait(db *sql.DB) int

func GetTPS

func GetTPS(db *sql.DB) int

func Get_Database

func Get_Database(db *sql.DB, matrix_name string) string

func Get_Instance

func Get_Instance(db *sql.DB, matrix_name string) string

func Get_StartupTime

func Get_StartupTime(db *sql.DB) string

func MoveToHistory

func MoveToHistory(mysql *xorm.Engine, table_name string, key_name string, key_value int)

func StorageMetricData

func StorageMetricData(mysql *xorm.Engine, db_id int, metric string, timestamp string, value string, counterType string)

Storage metric data

func Update_Item_Tips

func Update_Item_Tips(mysql *xorm.Engine, db_id int, field string, value string, trigger_type string, level int, severity string)

Types

type Diskgroup

type Diskgroup struct {
	Name string `xorm:"varchar(200) 'diskgroup_name' "`
	Size string `xorm:"varchar(200) 'used_mb' "`
	Rate string `xorm:"varchar(200) 'used_rate' "`
}

type Tablespace

type Tablespace struct {
	Name string `xorm:"varchar(200) 'tablespace_name' "`
	Size string `xorm:"varchar(200) 'used_size' "`
	Rate string `xorm:"varchar(200) 'max_rate' "`
}

Jump to

Keyboard shortcuts

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