Class: Mongo::Monitoring::Event::TopologyOpening
- Inherits:
-
Event::Base
- Object
- Event::Base
- Mongo::Monitoring::Event::TopologyOpening
- Defined in:
- lib/mongo/monitoring/event/topology_opening.rb
Overview
Event fired when the topology is opening.
Instance Attribute Summary collapse
-
#topology ⇒ Topology
readonly
Topology The topology.
Instance Method Summary collapse
-
#initialize(topology) ⇒ TopologyOpening
constructor
Create the event.
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
Constructor Details
#initialize(topology) ⇒ TopologyOpening
Create the event.
38 39 40 |
# File 'lib/mongo/monitoring/event/topology_opening.rb', line 38 def initialize(topology) @topology = topology end |
Instance Attribute Details
#topology ⇒ Topology (readonly)
Returns topology The topology.
28 29 30 |
# File 'lib/mongo/monitoring/event/topology_opening.rb', line 28 def topology @topology end |
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
50 51 52 53 |
# File 'lib/mongo/monitoring/event/topology_opening.rb', line 50 def summary "#<#{short_class_name}" + " topology=#{topology.summary}>" end |