Documentation ¶
Overview ¶
Package user_latency manages the output from INFORMATION_SCHEMA.PROCESSLIST
Package user_latency file contains the library routines for managing the information_schema.processlist table.
Package user_latency file contains the library routines for managing the information_schema.processlist table.
Package user_latency contains library routines for ps-top related to the INFORMATION_SCHEMA.PROCESSLIST table.
Index ¶
- type ByRunTime
- type PlByUserRow
- type PlByUserRows
- type Row
- type Rows
- type UserLatency
- func (ul *UserLatency) Collect()
- func (ul UserLatency) Description() string
- func (ul UserLatency) EmptyRowContent() string
- func (ul UserLatency) HaveRelativeStats() bool
- func (ul UserLatency) Headings() string
- func (ul UserLatency) Len() int
- func (ul UserLatency) RowContent() []string
- func (ul *UserLatency) SetFirstFromLast()
- func (ul UserLatency) TotalRowContent() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlByUserRow ¶
type PlByUserRow struct {
// contains filtered or unexported fields
}
PlByUserRow contains a summary row of information taken from information_schema.processlist
type PlByUserRows ¶
type PlByUserRows []PlByUserRow
PlByUserRows contains a slice of PlByUserRow rows
func (PlByUserRows) Headings ¶
func (t PlByUserRows) Headings() string
Headings provides a heading for the rows
type Row ¶
type Row struct { ID uint64 // contains filtered or unexported fields }
Row contains a row from from information_schema.processlist
type UserLatency ¶ added in v0.7.16
type UserLatency struct { baseobject.BaseObject Results PlByUserRows // results by user Totals PlByUserRow // totals of results // contains filtered or unexported fields }
UserLatency contains a table of rows
func NewUserLatency ¶ added in v0.7.6
func NewUserLatency(ctx *context.Context, db *sql.DB) *UserLatency
NewUserLatency returns a user latency object
func (*UserLatency) Collect ¶ added in v0.7.16
func (ul *UserLatency) Collect()
Collect collects data from the db, updating initial values if needed, and then subtracting initial values if we want relative values, after which it stores totals.
func (UserLatency) Description ¶ added in v0.7.16
func (ul UserLatency) Description() string
Description returns a string description of the data being returned
func (UserLatency) EmptyRowContent ¶ added in v0.7.16
func (ul UserLatency) EmptyRowContent() string
EmptyRowContent returns an empty string representing the view values
func (UserLatency) HaveRelativeStats ¶ added in v0.7.16
func (ul UserLatency) HaveRelativeStats() bool
HaveRelativeStats returns if we have relative information
func (UserLatency) Headings ¶ added in v0.7.16
func (ul UserLatency) Headings() string
Headings returns a string representing the view headings
func (UserLatency) Len ¶ added in v0.7.16
func (ul UserLatency) Len() int
Len returns the length of the result set
func (UserLatency) RowContent ¶ added in v0.7.16
func (ul UserLatency) RowContent() []string
RowContent returns a string representing the row's view values
func (*UserLatency) SetFirstFromLast ¶ added in v0.7.16
func (ul *UserLatency) SetFirstFromLast()
SetFirstFromLast - NOT IMPLEMENTED
func (UserLatency) TotalRowContent ¶ added in v0.7.16
func (ul UserLatency) TotalRowContent() string
TotalRowContent returns a string representing the total view values