mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
PT-57 improved help for pt-mongodb-query-digest
This commit is contained in:
13
src/go/mongolib/proto/profiler_status.go
Normal file
13
src/go/mongolib/proto/profiler_status.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package proto
|
||||
|
||||
// ProfilerStatus is a struct to hold the results of db.getProfilingLevel()
|
||||
// var ps proto.ProfilerStatus
|
||||
// err := db.Run(bson.M{"profile": -1}, &ps)
|
||||
type ProfilerStatus struct {
|
||||
Was int64 `bson:"was"`
|
||||
SlowMs int64 `bson:"slowms"`
|
||||
GleStats struct {
|
||||
ElectionID string `bson:"electionId"`
|
||||
LastOpTime int64 `bson:"lastOpTime"`
|
||||
} `bson:"$gleStats"`
|
||||
}
|
Reference in New Issue
Block a user