PT-57 improved help for pt-mongodb-query-digest

This commit is contained in:
Carlos Salguero
2017-01-24 17:44:34 -03:00
parent 80c7d042ab
commit cf06b4bd20

View 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"`
}