Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetStatsAndReset ¶
func (c *Client) GetStatsAndReset(ctx context.Context) ([]StatementStat, error)
type StatementStat ¶
type StatementStat struct {
UserID int
DbID int
DbName string `sql:"datname"`
QueryID int64
Query string
Calls int64
TotalTime float64 `sql:"total_time"`
MinTime float64 `sql:"min_time"`
MaxTime float64 `sql:"max_time"`
MeanTime float64 `sql:"mean_time"`
StdDevTime float64 `sql:"stddev_time"`
Rows int64
LocalBlksHit int64 `sql:"local_blks_hit"`
LocalBlksRead int64 `sql:"local_blks_read"`
LocalBlksDirtied int64 `sql:"local_blks_dirtied"`
LocalBlksWritten int64 `sql:"local_blks_written"`
TempBlksRead int64 `sql:"temp_blks_read"`
TempBlksWritten int64 `sql:"temp_blks_written"`
BlkReadTime float64 `sql:"blk_read_time"`
BlkWriteTime float64 `sql:"blk_write_time"`
Host string `sql:"-"`
}
Click to show internal directories.
Click to hide internal directories.