struct Mongo::Monitoring::Commands::CommandFailedEvent

Overview

This event is triggered when a command is rejected by the server.

Defined in:

cryomongo/monitoring.cr

Instance Method Summary

Instance methods inherited from struct Mongo::Monitoring::Commands::Event

initialize initialize

Constructor methods inherited from struct Mongo::Monitoring::Commands::Event

new new

Instance Method Detail

def address : String #

Returns the server address.


def command_name : String #

Returns the command name.


def duration : Time::Span #

Returns the execution time of the event in the highest possible resolution for the platform.


def failure : Exception #

Returns the failure.


def operation_id : Int64? #

Returns the driver generated operation id. This is used to link events together such as bulk write operations. OPTIONAL.


def reply : BSON #

Returns the command reply.


def request_id : Int64 #

Returns the driver generated request id.