Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fingerprinter ¶
type Fingerprinter interface {
Fingerprint(doc proto.SystemProfile) (fingerprinter.Fingerprint, error)
}
type Queries ¶
type Queries []QueryInfoAndCounters
Queries is a slice of MongoDB statistics
func (Queries) CalcQueriesStats ¶
func (q Queries) CalcQueriesStats(uptime int64) []QueryStats
CalcQueriesStats calculates QueryStats for given uptime
func (Queries) CalcTotalQueriesStats ¶
func (q Queries) CalcTotalQueriesStats(uptime int64) QueryStats
CalcTotalQueriesStats calculates total QueryStats for given uptime
type QueryInfoAndCounters ¶
type QueryInfoAndCounters struct { ID string Namespace string Operation string Query string Fingerprint string FirstSeen time.Time LastSeen time.Time TableScan bool Count int BlockedTime Times LockTime Times NReturned []float64 NScanned []float64 QueryTime []float64 // in milliseconds ResponseLength []float64 }
type QueryStats ¶
type QueryStats struct { ID string Namespace string Operation string Query string Fingerprint string FirstSeen time.Time LastSeen time.Time Count int QPS float64 Rank int Ratio float64 QueryTime Statistics ResponseLength Statistics Returned Statistics Scanned Statistics }
type Statistics ¶
type Stats ¶
Stats is a collection of MongoDB statistics
func New ¶
func New(fingerprinter Fingerprinter) *Stats
New creates new instance of stats with given Fingerprinter
type StatsError ¶
type StatsError struct {
// contains filtered or unexported fields
}
func (*StatsError) Error ¶
func (e *StatsError) Error() string
func (*StatsError) Parent ¶
func (e *StatsError) Parent() error
type StatsFingerprintError ¶
type StatsFingerprintError StatsError
Click to show internal directories.
Click to hide internal directories.