jstests/free_mon/libs/free_mon.js
/**
 * Get current Free Monitoring Status via serverStatus.
 *
 * @param {object} serverStatus.freeMonitoring section
 */
Get current Free Monitoring Status via serverStatus.
Get current Free Monitoring Status via serverStatus .
function FreeMonGetServerStatus(conn) {
    'use strict';
    const admin = conn.getDB("admin");
    return assert.commandWorked(admin.runCommand({serverStatus: 1})).freeMonitoring;
}
function FreeMonGetServerStatus ( conn ) { 'use strict' ; const admin = conn . getDB ( "admin" ) ; return assert . commandWorked ( admin . runCommand ( { serverStatus : 1 } ) ) . freeMonitoring ; }
Get current Free Monitoring Status via serverStatus.
Get current Free Monitoring Status via serverStatus .