class Mongo::Monitoring::Event::Cmap::ConnectionCreated
Event
published when a connection is created.
@since 2.9.0
Attributes
@return [ Mongo::Address
] address The address of the server the connection will connect
to.
@since 2.9.0
@return [ Integer ] connection_id
The ID of the connection.
@since 2.9.0
Public Class Methods
Source
# File lib/mongo/monitoring/event/cmap/connection_created.rb, line 43 def initialize(address, id) @address = address @connection_id = id end
Create the event.
@example Create the event.
ConnectionCreated.new(address, id)
@since 2.9.0 @api private
Public Instance Methods
Source
# File lib/mongo/monitoring/event/cmap/connection_created.rb, line 56 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} " + "address=#{address} connection_id=#{connection_id}>" end
Returns a concise yet useful summary of the event.
@return [ String ] String summary of the event.
@note This method is experimental and subject to change.
@since 2.9.0 @api experimental