qrt

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlQrtBucket

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

MysqlQrtBucket : https://www.percona.com/doc/percona-server/5.6/diagnostics/response_time_distribution.html Represents a row from information_schema.Query_Response_Time

func NewMysqlQrtBucket

func NewMysqlQrtBucket(time float64, count int64, total float64) MysqlQrtBucket

NewMysqlQrtBucket Public way to return a QRT bucket to be appended to a Histogram

type MysqlQrtHistogram

type MysqlQrtHistogram []MysqlQrtBucket

MysqlQrtHistogram represents a histogram containing MySQLQRTBuckets. Where each bucket is a bin.

func (MysqlQrtHistogram) Count

func (h MysqlQrtHistogram) Count() int64

Count for QRT Histogram

func (MysqlQrtHistogram) Len

func (h MysqlQrtHistogram) Len() int

Sort for QRT Histogram

func (MysqlQrtHistogram) Less

func (h MysqlQrtHistogram) Less(i, j int) bool

func (MysqlQrtHistogram) Percentile

func (h MysqlQrtHistogram) Percentile(p float64) float64

Percentile for QRTHistogram p should be p/100 where p is requested percentile (example: 0.10 for 10th percentile) Percentile is defined as the weighted of the percentiles of lowest bin that is greater than the requested percentile rank

func (MysqlQrtHistogram) Swap

func (h MysqlQrtHistogram) Swap(i, j int)

Jump to

Keyboard shortcuts

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