package
0.0.0-20250211052951-b571b42b595a
Repository: https://github.com/updox/go-mysql.git
Documentation: pkg.go.dev

# Functions

Float64 returns a pointer to the float64 value passed in.
Float64Value returns the value of the float64 pointer passed in or 0 if the pointer is nil.
NewAggregator returns a new Aggregator.
NewClass returns a new Class for the class ID and fingerprint.
NewMetrics returns a pointer to an initialized Metrics structure.
Uint64 returns a pointer to the uint64 value passed in.
Uint64Value returns the value of the uint64 pointer passed in or 0 if the pointer is nil.

# Constants

MaxExampleBytes defines to how many bytes truncate a query.
TruncatedExampleSuffix is added to truncated query.

# Structs

An Aggregator groups events by class ID.
BoolStats are boolean-based metrics like QC_Hit and Filesort.
A Class represents all events with the same fingerprint and class ID.
A Example is a real query and its database, timestamp, and Query_time.
Metrics encapsulate the metrics of an event like Query_time and Rows_sent.
NumberStats are integer-based metrics like Rows_sent and Merge_passes.
A Result contains a global class and per-ID classes with finalized metric statistics.
TimeStats are microsecond-based metrics like Query_time and Lock_time.