class Mongo::Monitoring::Event::TopologyOpening

Event fired when the topology is opening.

@since 2.4.0

Attributes

topology[R]

@return [ Topology ] topology The topology.

Public Class Methods

new(topology) click to toggle source

Create the event.

@example Create the event.

TopologyOpening.new(topology)

@param [ Integer ] topology The topology.

@since 2.4.0

# File lib/mongo/monitoring/event/topology_opening.rb, line 35
def initialize(topology)
  @topology = topology
end

Public Instance Methods

summary() click to toggle source

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

# File lib/mongo/monitoring/event/topology_opening.rb, line 47
def summary
  "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" +
  " topology=#{topology.summary}>"
end