tableiolatency

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package tableiolatency holds the routines which manage the tableio statisticss.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

Wrapper represents the contents of the data collected related to tableio statistics

func NewTableIoLatency

func NewTableIoLatency(cfg *config.Config, db *sql.DB) *Wrapper

NewTableIoLatency creates a wrapper around tableio statistics

func (*Wrapper) Collect

func (tiolw *Wrapper) Collect()

Collect data from the db, then merge it in.

func (Wrapper) Description

func (tiolw Wrapper) Description() string

Description returns a description of the table

func (Wrapper) EmptyRowContent

func (tiolw Wrapper) EmptyRowContent() string

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

func (Wrapper) FirstCollectTime

func (tiolw Wrapper) FirstCollectTime() time.Time

FirstCollectTime returns the time of the first collection

func (Wrapper) HaveRelativeStats

func (tiolw Wrapper) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (Wrapper) Headings

func (tiolw Wrapper) Headings() string

Headings returns the latency headings as a string

func (Wrapper) LastCollectTime

func (tiolw Wrapper) LastCollectTime() time.Time

LastCollectTime returns the time of the last collection

func (*Wrapper) ResetStatistics added in v1.1.0

func (tiolw *Wrapper) ResetStatistics()

ResetStatistics resets the statistics to last values

func (Wrapper) RowContent

func (tiolw Wrapper) RowContent() []string

RowContent returns the rows we need for displaying

func (*Wrapper) Tiol

func (tiolw *Wrapper) Tiol() *tableio.TableIo

Tiol returns the a TableIo value

func (Wrapper) TotalRowContent

func (tiolw Wrapper) TotalRowContent() string

TotalRowContent returns all the totals

func (Wrapper) WantRelativeStats

func (tiolw Wrapper) WantRelativeStats() bool

WantRelativeStats returns if we want to see relative stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳