class Mongo::Monitoring::Event::ServerHeartbeatSucceeded
Event
fired when a server heartbeat is dispatched.
@since 2.7.0
Attributes
address[R]
@return [ Address
] address The server address.
duration[R]
@return [ Float ] round_trip_time
Duration of ismaster call in seconds.
round_trip_time[R]
@return [ Float ] round_trip_time
Duration of ismaster call in seconds.
Public Class Methods
new(address, round_trip_time)
click to toggle source
Create the event.
@example Create the event.
ServerHeartbeatSucceeded.new(address, duration)
@param [ Address
] address The server address. @param [ Float ] round_trip_time
Duration of ismaster call in seconds.
@since 2.7.0 @api private
# File lib/mongo/monitoring/event/server_heartbeat_succeeded.rb, line 43 def initialize(address, round_trip_time) @address = address @round_trip_time = round_trip_time 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_succeeded.rb, line 56 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" + " address=#{address}>" end