class Mongo::Monitoring::Event::ServerOpening
Event fired when the server is opening.
@since 2.4.0
Attributes
address[R]
@return [ Address ] address The server address.
topology[R]
@return [ Topology ] topology The topology.
Public Class Methods
new(address, topology)
click to toggle source
Create the event.
@example Create the event.
ServerOpening.new(address)
@param [ Address ] address The server address. @param [ Integer ] topology The topology.
@since 2.4.0
# File lib/mongo/monitoring/event/server_opening.rb, line 39 def initialize(address, topology) @address = address @topology = topology end
Public Instance Methods
inspect()
click to toggle source
Returns a concise yet useful summary of the event.
@return [ String ] String summary of the event.
@since 2.6.0
# File lib/mongo/monitoring/event/server_opening.rb, line 49 def inspect "#<#{self.class} address=#{address} topology=#{topology.class.name.sub(/.*::/, '')}>" end