logs

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 GetSlowLogsOpts

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

type SlowLogPage

type SlowLogPage struct {
	pagination.NewSinglePageBase
}

type SlowlogResult

type SlowlogResult struct {
	Time        string `json:"time"`
	Database    string `json:"database"`
	QuerySample string `json:"query_sample"`
	Type        string `json:"type"`
	StartTime   string `json:"start_time"`
}

func ExtractSlowLogs

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

func GetSlowLogs

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

Jump to

Keyboard shortcuts

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