Class: Mongo::Monitoring::Event::ServerHeartbeatStarted
- Inherits:
-
Event::Base
- Object
- Event::Base
- Mongo::Monitoring::Event::ServerHeartbeatStarted
- Defined in:
- lib/mongo/monitoring/event/server_heartbeat_started.rb
Overview
Event fired when a server heartbeat is dispatched.
Instance Attribute Summary collapse
-
#address ⇒ Address
readonly
Address The server address.
Instance Method Summary collapse
-
#initialize(address) ⇒ ServerHeartbeatStarted
constructor
private
Create the event.
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
Constructor Details
#initialize(address) ⇒ ServerHeartbeatStarted
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the event.
36 37 38 |
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 36 def initialize(address) @address = address end |
Instance Attribute Details
#address ⇒ Address (readonly)
Returns address The server address.
25 26 27 |
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 25 def address @address end |
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
48 49 50 51 |
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 48 def summary "#<#{self.class.name.sub(/^Mongo::Monitoring::Event::/, '')}" + " address=#{address}>" end |