summaryrefslogtreecommitdiff
path: root/src/mongo/db/free_mon/free_mon_storage.h
diff options
context:
space:
mode:
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