class Mongo::Monitoring::Event::ServerHeartbeatStarted
Event
fired when a server heartbeat is dispatched.
@since 2.7.0
Attributes
address[R]
@return [ Address
] address The server address.
Public Class Methods
new(address)
click to toggle source
Create the event.
@example Create the event.
ServerHeartbeatStarted.new(address)
@param [ Address
] address The server address.
@since 2.7.0 @api private
# File lib/mongo/monitoring/event/server_heartbeat_started.rb, line 36 def initialize(address) @address = address end
Public Instance Methods
summary()
click to toggle source
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
# File lib/mongo/monitoring/event/server_heartbeat_started.rb, line 48 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" + " address=#{address}>" end