Method: Mongo::Monitoring::Event::CommandSucceeded#initialize
- Defined in:
- lib/mongo/monitoring/event/command_succeeded.rb
#initialize(command_name, database_name, address, request_id, operation_id, reply, duration, started_event:, server_connection_id: nil, service_id: nil) ⇒ CommandSucceeded
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the new event.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/mongo/monitoring/event/command_succeeded.rb', line 78 def initialize(command_name, database_name, address, request_id, operation_id, reply, duration, started_event:, server_connection_id: nil, service_id: nil ) @command_name = command_name.to_s @database_name = database_name @address = address @request_id = request_id @operation_id = operation_id @service_id = service_id @started_event = started_event @reply = redacted(command_name, reply) @duration = duration @server_connection_id = server_connection_id end |