summaryrefslogtreecommitdiff
path: root/src/mongo/db/free_mon/free_mon_storage.h
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2018-04-10 16:24:53 -0400
committerSara Golemon <sara.golemon@mongodb.com>2018-04-18 17:25:40 -0400
commit14d03a79f55d69ccdd27bb4a08906a4be5eb4a8e (patch)
treefb4eeea5ea2be69bd93e9050ede9ebcad1aefe92 /src/mongo/db/free_mon/free_mon_storage.h
parentd31c1e77117668ae11a967311d251ad0a4f26d01 (diff)
downloadmongo-14d03a79f55d69ccdd27bb4a08906a4be5eb4a8e.tar.gz
SERVER-34230 Add ActionType and Commands for Free Monitoring
Diffstat (limited to 'src/mongo/db/free_mon/free_mon_storage.h')
-rw-r--r--src/mongo/db/free_mon/free_mon_storage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/free_mon/free_mon_storage.h b/src/mongo/db/free_mon/free_mon_storage.h
index fd7d81e68bf..cc2fc47ff6d 100644
--- a/src/mongo/db/free_mon/free_mon_storage.h
+++ b/src/mongo/db/free_mon/free_mon_storage.h
@@ -62,6 +62,13 @@ public:
* Returns nothing if there are more then one document or it does not exist.
*/
static boost::optional<BSONObj> readClusterManagerState(OperationContext* opCtx);
+
+ /**
+ * Populate a BSON object with the current status of FreeMonitoring.
+ * This status object will be suitable for return to a caller
+ * invoking the {getFreeMonitoringStatus:1} command.
+ */
+ static void getStatus(OperationContext* opCtx, BSONObjBuilder* builder);
};
} // namespace mongo