module Mongo::Commands::Profile
Overview
For a mongod instance, the command enables, disables, or configures the Database Profiler. For mongos instance, the command sets the slowms and sampleRate configuration settings, which configure how operations get written to the diagnostic log.
NOTE for more details, please check the official MongoDB documentation.
Extended Modules
Defined in:
cryomongo/commands/diagnostic/profile.crInstance Method Summary
-
#command(level : Int32, options)
Returns a pair of OP_MSG body and sequences associated with the command and arguments.
-
#result(bson : BSON)
Transforms the server result.
Instance Method Detail
def command(level : Int32, options)
#
Returns a pair of OP_MSG body and sequences associated with the command and arguments.