report

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByQueryTime

type ByQueryTime []*agentpb.MetricsBucket

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 Report

type Report struct {
	StartTs time.Time                // Start time of interval, UTC
	EndTs   time.Time                // Stop time of interval, UTC
	Buckets []*agentpb.MetricsBucket // per-class metrics
}

func MakeReport

func MakeReport(ctx context.Context, startTime, endTime time.Time, result *Result) *Report

type Result

type Result struct {
	Buckets []*agentpb.MetricsBucket
}

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