summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/mongotop/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/gotools/mongotop/options.go')
-rw-r--r--src/mongo/gotools/mongotop/options.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mongo/gotools/mongotop/options.go b/src/mongo/gotools/mongotop/options.go
new file mode 100644
index 00000000000..054b522d14b
--- /dev/null
+++ b/src/mongo/gotools/mongotop/options.go
@@ -0,0 +1,19 @@
+package mongotop
+
+var Usage = `<options> <polling interval in seconds>
+
+Monitor basic usage statistics for each collection.
+
+See http://docs.mongodb.org/manual/reference/program/mongotop/ for more information.`
+
+// Output defines the set of options to use in displaying data from the server.
+type Output struct {
+ Locks bool `long:"locks" description:"report on use of per-database locks"`
+ RowCount int `long:"rowcount" value-name:"<count>" short:"n" description:"number of stats lines to print (0 for indefinite)"`
+ Json bool `long:"json" description:"format output as JSON"`
+}
+
+// Name returns a human-readable group name for output options.
+func (_ *Output) Name() string {
+ return "output"
+}