Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StatTypeMin focus 1 minute StatTypeMin statType = iota // StatType10Min focus 10 minutes StatType10Min // StatTypeHour focus 1 hour StatTypeHour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wrapped *spanner.Client for easy to use stats collect
type Stat ¶
type Stat struct { IntervalEnd time.Time `spanner:"INTERVAL_END"` Text string `spanner:"TEXT"` TextTruncated bool `spanner:"TEXT_TRUNCATED"` TextFingerprint int64 `spanner:"TEXT_FINGERPRINT"` ExecutionCount int64 `spanner:"EXECUTION_COUNT"` AvgLatencySeconds float64 `spanner:"AVG_LATENCY_SECONDS"` AvgRows float64 `spanner:"AVG_ROWS"` AvgBytes float64 `spanner:"AVG_BYTES"` AvgRowsScanned float64 `spanner:"AVG_ROWS_SCANNED"` AvgCPUSeconds float64 `spanner:"AVG_CPU_SECONDS"` }
Stat track the queries with the highest CPU usage during a specific time period followed https://cloud.google.com/spanner/docs/query-stats-tables
Click to show internal directories.
Click to hide internal directories.