file_io_latency

package
v0.7.17 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package file_io_latency holds the routines which manage the file_summary_by_instance table.

Package file_io_latency contains the routines for managing the file_summary_by_instance table.

Package file_io_latency contains the routines for managing the file_summary_by_instance table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileIoLatency added in v0.7.16

type FileIoLatency struct {
	baseobject.BaseObject // embedded

	Results Rows
	Totals  Row
	// contains filtered or unexported fields
}

FileIoLatency represents the contents of the data collected from file_summary_by_instance

func NewFileSummaryByInstance

func NewFileSummaryByInstance(ctx *context.Context, db *sql.DB) *FileIoLatency

NewFileSummaryByInstance creates a new structure and include various variable values: - datadir, relay_log There's no checking that these are actually provided!

func (*FileIoLatency) Collect added in v0.7.16

func (fiol *FileIoLatency) Collect()

Collect data from the db, then merge it in.

func (FileIoLatency) Description added in v0.7.16

func (fiol FileIoLatency) Description() string

Description returns a description of the table

func (FileIoLatency) EmptyRowContent added in v0.7.16

func (fiol FileIoLatency) EmptyRowContent() string

EmptyRowContent returns an empty string of data (for filling in)

func (FileIoLatency) HaveRelativeStats added in v0.7.16

func (fiol FileIoLatency) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (FileIoLatency) Headings added in v0.7.16

func (fiol FileIoLatency) Headings() string

Headings returns the headings for a table

func (FileIoLatency) Len added in v0.7.16

func (fiol FileIoLatency) Len() int

Len return the length of the result set

func (FileIoLatency) RowContent added in v0.7.16

func (fiol FileIoLatency) RowContent() []string

RowContent returns the rows we need for displaying

func (*FileIoLatency) SetFirstFromLast added in v0.7.16

func (fiol *FileIoLatency) SetFirstFromLast()

SetFirstFromLast resets the statistics to last values

func (FileIoLatency) TotalRowContent added in v0.7.16

func (fiol FileIoLatency) TotalRowContent() string

TotalRowContent returns all the totals

type Row

type Row struct {
	// contains filtered or unexported fields
}

Row contains a row from file_summary_by_instance

func (Row) String added in v0.7.1

func (row Row) String() string

func (Row) Valid added in v0.7.1

func (row Row) Valid(logProblem bool) bool

Valid checks if the row is valid and if asked to do so logs the problem

type Rows

type Rows []Row

Rows represents a slice of Row

func (Rows) Len

func (rows Rows) Len() int

func (Rows) Less

func (rows Rows) Less(i, j int) bool

func (Rows) Swap

func (rows Rows) Swap(i, j int)

func (Rows) Valid added in v0.7.1

func (rows Rows) Valid() bool

Valid determines if each individual row is valid

Jump to

Keyboard shortcuts

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