Class: Mongo::Monitoring::Event::TopologyOpening

Inherits:
Event::Base
  • Object
show all
Defined in:
build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_opening.rb

Overview

Event fired when the topology is opening.

Since:

  • 2.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topology) ⇒ TopologyOpening

Create the event.

Examples:

Create the event.

TopologyOpening.new(topology)

Parameters:

  • topology (Integer)

    The topology.

Since:

  • 2.4.0



38
39
40
# File 'build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_opening.rb', line 38

def initialize(topology)
  @topology = topology
end

Instance Attribute Details

#topologyTopology (readonly)

Returns topology The topology.

Returns:

  • (Topology)

    topology The topology.

Since:

  • 2.4.0



28
29
30
# File 'build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_opening.rb', line 28

def topology
  @topology
end

Instance Method Details

#summaryString

Note:

This method is experimental and subject to change.

Returns a concise yet useful summary of the event.

Returns:

  • (String)

    String summary of the event.

Since:

  • 2.7.0



50
51
52
53
# File 'build/ruby-driver-v2.19/lib/mongo/monitoring/event/topology_opening.rb', line 50

def summary
  "#<#{short_class_name}" +
  " topology=#{topology.summary}>"
end