diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2018-04-10 16:24:53 -0400 |
---|---|---|
committer | Sara Golemon <sara.golemon@mongodb.com> | 2018-04-18 17:25:40 -0400 |
commit | 14d03a79f55d69ccdd27bb4a08906a4be5eb4a8e (patch) | |
tree | fb4eeea5ea2be69bd93e9050ede9ebcad1aefe92 /src/mongo/db/free_mon/free_mon_storage.h | |
parent | d31c1e77117668ae11a967311d251ad0a4f26d01 (diff) | |
download | mongo-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.h | 7 |
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 |