querystats

package
v1.90.0-cluster Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled returns true of query stats tracking is enabled.

func RegisterQuery

func RegisterQuery(accountID, projectID uint32, query string, timeRangeMsecs int64, startTime time.Time)

RegisterQuery registers the query on the given timeRangeMsecs, which has been started at startTime.

RegisterQuery must be called when the query is finished.

func WriteJSONQueryStats

func WriteJSONQueryStats(w io.Writer, topN int, maxLifetime time.Duration)

WriteJSONQueryStats writes query stats to given writer in json format.

func WriteJSONQueryStatsForAccountProject

func WriteJSONQueryStatsForAccountProject(w io.Writer, topN int, accountID, projectID uint32, maxLifetime time.Duration)

WriteJSONQueryStatsForAccountProject writes query stats for the given (accountID, projectID) to given writer in json format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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