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