stages_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: 10 Imported by: 0

Documentation

Overview

Package stages_latency 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 {
	// contains filtered or unexported fields
}

Row contains the information in one row

func (Row) String

func (row Row) String() string

String describes a whole row

type Rows

type Rows []Row

Rows contains a slice of Rows

func (Rows) Len

func (rows Rows) Len() int

func (Rows) Less

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

sort by value (descending) but also by "name" (ascending) if the values are the same

func (Rows) String

func (rows Rows) String() string

String describes a whole table

func (Rows) Swap

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

type StagesLatency added in v0.7.16

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 added in v0.7.6

func NewStagesLatency(ctx *context.Context, db *sql.DB) *StagesLatency

NewStagesLatency returns a stages_latency StagesLatency

func (*StagesLatency) Collect added in v0.7.16

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) Description added in v0.7.16

func (sl StagesLatency) Description() string

Description describe the stages

func (StagesLatency) EmptyRowContent added in v0.7.16

func (sl StagesLatency) EmptyRowContent() string

EmptyRowContent returns an empty row

func (StagesLatency) HaveRelativeStats added in v0.7.16

func (sl StagesLatency) HaveRelativeStats() bool

HaveRelativeStats is true for this object

func (*StagesLatency) Headings added in v0.7.16

func (sl *StagesLatency) Headings() string

Headings returns the headings of the object

func (StagesLatency) Len added in v0.7.16

func (sl StagesLatency) Len() int

Len returns the length of the result set

func (StagesLatency) RowContent added in v0.7.16

func (sl StagesLatency) RowContent() []string

RowContent returns a slice of strings containing the row content

func (*StagesLatency) SetFirstFromLast added in v0.7.16

func (sl *StagesLatency) SetFirstFromLast()

SetFirstFromLast resets the statistics to current values

func (StagesLatency) TotalRowContent added in v0.7.16

func (sl StagesLatency) TotalRowContent() string

TotalRowContent returns a row containing the totals

Jump to

Keyboard shortcuts

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