Class Mongo::Monitoring::Event::ServerDescriptionChanged
In: lib/mongo/monitoring/event/server_description_changed.rb
Parent: Mongo::Event::Base

Event fired when a server‘s description changes.

@since 2.4.0

Methods

new   summary  

Attributes

address  [R]  @return [ Address ] address The server address.
new_description  [R]  @return [ Server::Description ] new_description The new server
  description.
previous_description  [R]  @return [ Server::Description ] previous_description The previous server
  description.
topology  [R]  @return [ Topology ] topology The topology.

Public Class methods

Create the event.

@example Create the event.

  ServerDescriptionChanged.new(address, topology, previous, new)

@param [ Address ] address The server address. @param [ Integer ] topology The topology. @param [ Server::Description ] previous_description The previous description. @param [ Server::Description ] new_description The new description.

@since 2.4.0

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]