stageslatency

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package stageslatency is the nterface to events_stages_summary_global_by_event_name

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Name         string
	CountStar    uint64
	SumTimerWait uint64
}

Row contains the information in one row

type Rows

type Rows []Row

Rows contains a slice of Rows

type StagesLatency

type StagesLatency struct {
	baseobject.BaseObject // embedded

	Results Rows // results (maybe with subtraction)
	Totals  Row  // totals of results
	// contains filtered or unexported fields
}

StagesLatency provides a public view of object

func NewStagesLatency

func NewStagesLatency(cfg *config.Config, db *sql.DB) *StagesLatency

NewStagesLatency returns a stageslatency StagesLatency

func (*StagesLatency) Collect

func (sl *StagesLatency) 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 (StagesLatency) HaveRelativeStats

func (sl StagesLatency) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (*StagesLatency) ResetStatistics added in v1.1.0

func (sl *StagesLatency) ResetStatistics()

ResetStatistics resets the statistics to current values

Jump to

Keyboard shortcuts

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