class Mongo::Monitoring::Event::ServerHeartbeatStarted
Event
fired when a server heartbeat is dispatched.
@since 2.7.0
Attributes
@return [ Address
] address The server address.
Public Class Methods
Source
# File lib/mongo/monitoring/event/server_heartbeat_started.rb, line 42 def initialize(address, awaited: false) @address = address @awaited = !!awaited end
Create the event.
@example Create the event.
ServerHeartbeatStarted.new(address)
@param [ Address
] address The server address. @param [ true | false ] awaited Whether the heartbeat was awaited.
@since 2.7.0 @api private
Public Instance Methods
Source
# File lib/mongo/monitoring/event/server_heartbeat_started.rb, line 28 def awaited? @awaited end
@return [ true | false ] Whether the heartbeat was awaited.
Source
# File lib/mongo/monitoring/event/server_heartbeat_started.rb, line 55 def summary "#<#{short_class_name}" + " address=#{address}>" 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