Class Mongo::Monitoring::Event::TopologyChanged
In: lib/mongo/monitoring/event/topology_changed.rb
Parent: Mongo::Event::Base

Event fired when the topology changes.

@since 2.4.0

Methods

new   summary  

Attributes

new_topology  [R]  @return [ Cluster::Topology ] new_topology The new topology.
previous_topology  [R]  @return [ Cluster::Topology ] previous_topology The previous topology.

Public Class methods

Create the event.

@example Create the event.

  TopologyChanged.new(previous, new)

@param [ Cluster::Topology ] previous_topology The previous topology. @param [ Cluster::Topology ] new_topology The new topology.

@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]