Class Mongo::Monitoring::Event::ServerHeartbeatFailed
In: lib/mongo/monitoring/event/server_heartbeat_failed.rb
Parent: Mongo::Event::Base

Event fired when a server heartbeat is dispatched.

@since 2.7.0

Methods

new   summary  

External Aliases

round_trip_time -> duration
  Alias of round_trip_time.
error -> failure
  Alias of error for SDAM spec compliance.

Attributes

address  [R]  @return [ Address ] address The server address.
error  [R]  @return [ Exception ] error The exception that occurred in ismaster call.
round_trip_time  [R]  @return [ Float ] round_trip_time Duration of ismaster call in seconds.

Public Class methods

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

Public Instance methods

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

[Validate]