report

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeReport

func MakeReport(config pc.QAN, startTime, endTime time.Time, interval *iter.Interval, result *Result) *qan.Report

Types

type ByQueryTime

type ByQueryTime []*event.Class

func (ByQueryTime) Len

func (a ByQueryTime) Len() int

func (ByQueryTime) Less

func (a ByQueryTime) Less(i, j int) bool

func (ByQueryTime) Swap

func (a ByQueryTime) Swap(i, j int)

type Result

type Result struct {
	Global     *event.Class   // metrics for all data
	Class      []*event.Class // per-class metrics
	RateLimit  uint           // Percona Server rate limit
	RunTime    float64        // seconds parsing data, hopefully < interval
	StopOffset int64          // slow log offset where parsing stopped, should be <= end offset
	Error      string         `json:",omitempty"`
}

Data for an interval from slow log or performance schema (pfs) parser, passed to MakeReport() which transforms into a qan.Report{}.

Jump to

Keyboard shortcuts

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