From cf06b4bd20f1a1aecfc1a156f20adfbc29e1e0a5 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Tue, 24 Jan 2017 17:44:34 -0300 Subject: [PATCH] PT-57 improved help for pt-mongodb-query-digest --- src/go/mongolib/proto/profiler_status.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/go/mongolib/proto/profiler_status.go diff --git a/src/go/mongolib/proto/profiler_status.go b/src/go/mongolib/proto/profiler_status.go new file mode 100644 index 00000000..53383113 --- /dev/null +++ b/src/go/mongolib/proto/profiler_status.go @@ -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"` +}