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) 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)
Click to show internal directories.
Click to hide internal directories.