Help us shape the future of Go! Take the 2026 Go Developer Survey

logs

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorLogPage

type ErrorLogPage struct {
	pagination.NewSinglePageBase
}

type GetErrorLogsOpts

type GetErrorLogsOpts struct {
	InstanceId string `json:"-"`
	StartDate  string `q:"start_date" required:"true"`
	EndDate    string `q:"end_date" required:"true"`
	NodeId     string `q:"node_id" required:"true"`
	Offset     int    `q:"offset"`
	Limit      int    `q:"limit"`
	Level      string `q:"level"`
}

type GetSlowLogsOpts

type GetSlowLogsOpts struct {
	InstanceId string `q:"-"`
	StartDate  string `q:"start_date" required:"true"`
	EndDate    string `q:"end_date" required:"true"`
	NodeId     string `q:"node_id" required:"true"`
	Offset     int    `q:"offset"`
	Limit      int    `q:"limit"`
	Type       string `q:"type"`
}

type MysqlErrorLogList

type MysqlErrorLogList struct {
	NodeId  string `json:"node_id"`
	Time    string `json:"time"`
	Level   string `json:"level"`
	Content string `json:"content"`
}

func ExtractErrorLogs

func ExtractErrorLogs(r pagination.NewPage) ([]MysqlErrorLogList, error)

func GetErrorLogs

func GetErrorLogs(client *golangsdk.ServiceClient, opts GetErrorLogsOpts) ([]MysqlErrorLogList, error)

type MysqlSlowLogList

type MysqlSlowLogList struct {
	NodeId       string `json:"node_id"`
	Count        string `json:"count"`
	Time         string `json:"time"`
	LockTime     string `json:"lock_time"`
	RowsSent     string `json:"rows_sent"`
	RowsExamined string `json:"rows_examined"`
	Database     string `json:"database"`
	Users        string `json:"users"`
	QuerySample  string `json:"query_sample"`
	Type         string `json:"type"`
	StartTime    string `json:"start_time"`
	ClientIp     string `json:"client_ip"`
}

func ExtractSlowLogs

func ExtractSlowLogs(r pagination.NewPage) ([]MysqlSlowLogList, error)

func GetSlowLogs

func GetSlowLogs(client *golangsdk.ServiceClient, opts GetSlowLogsOpts) ([]MysqlSlowLogList, error)

type SlowLogPage

type SlowLogPage struct {
	pagination.NewSinglePageBase
}

Jump to

Keyboard shortcuts

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