Class: Mongo::Monitoring::Event::ServerHeartbeatStarted
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Mongo::Event::Base
|
|
Instance Chain:
self,
::Mongo::Event::Base
|
|
Inherits: |
Mongo::Event::Base
|
Defined in: | lib/mongo/monitoring/event/server_heartbeat_started.rb |
Overview
::Mongo::Monitoring::Event
fired when a server heartbeat is dispatched.
Class Method Summary
-
.new(address, awaited: false) ⇒ ServerHeartbeatStarted
constructor
Internal use only
Internal use only
Create the event.
Instance Attribute Summary
- #address ⇒ Address readonly
- #awaited? ⇒ true | false readonly
Instance Method Summary
-
#summary ⇒ String
Returns a concise yet useful summary of the event.
::Mongo::Event::Base
- Inherited
#summary | Returns a concise yet useful summary of the event. |
#short_class_name |
Instance Attribute Details
#address ⇒ Address (readonly)
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 28
attr_reader :address
#awaited? ⇒ true
| false
(readonly)
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 31
def awaited? @awaited end
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.
# File 'lib/mongo/monitoring/event/server_heartbeat_started.rb', line 58
def summary "#<#{short_class_name}" + " address=#{address}>" end