class Mongo::Monitoring::Event::ServerClosed
Event
fired when the server is closed.
@since 2.4.0
Attributes
@return [ Address
] address The server address.
@return [ Topology ] topology The topology.
Public Class Methods
Source
# File lib/mongo/monitoring/event/server_closed.rb, line 39 def initialize(address, topology) @address = address @topology = topology end
Create the event.
@example Create the event.
ServerClosed.new(address)
@param [ Address
] address The server address. @param [ Integer ] topology The topology.
@since 2.4.0
Public Instance Methods
Source
# File lib/mongo/monitoring/event/server_closed.rb, line 52 def summary "#<#{short_class_name}" + " address=#{address} topology=#{topology.summary}>" 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.7.0 @api experimental