Method: Mongo::Monitoring::Event::TopologyChanged#initialize

Defined in:
lib/mongo/monitoring/event/topology_changed.rb

#initialize(previous_topology, new_topology) ⇒ TopologyChanged

Create the event.

Examples:

Create the event.

TopologyChanged.new(previous, new)

Parameters:

Since:

  • 2.4.0



42
43
44
45
# File 'lib/mongo/monitoring/event/topology_changed.rb', line 42

def initialize(previous_topology, new_topology)
  @previous_topology = previous_topology
  @new_topology = new_topology
end