class Mongo::Monitoring::Event::Cmap::PoolCreated
Event
published when a connection pool is created.
@since 2.9.0
Attributes
@return [ Mongo::Address
] address The address of the server the pool’s connections will
connect to.
@since 2.9.0
@return [ Hash ] options Options
specified for pool creation.
@since 2.9.0
@return [ Mongo::Server::ConnectionPool
] pool The pool that was just created.
@since 2.11.0 @api experimental
Public Class Methods
Source
# File lib/mongo/monitoring/event/cmap/pool_created.rb, line 50 def initialize(address, options, pool) @address = address @options = options.dup.freeze @pool = pool end
Create the event.
@example Create the event.
PoolCreated.new(address, options, pool)
@since 2.9.0 @api private
Public Instance Methods
Source
# File lib/mongo/monitoring/event/cmap/pool_created.rb, line 64 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::Cmap::/, '')} " + "address=#{address} options=#{options} pool=0x#{pool.object_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