Class: Mongo::Monitoring::Event::ServerHeartbeatFailed
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_failed.rb |
Overview
::Mongo::Monitoring::Event
fired when a server heartbeat is dispatched.
Class Method Summary
-
.new(address, round_trip_time, error, awaited: false, started_event:) ⇒ ServerHeartbeatFailed
constructor
Internal use only
Internal use only
Create the event.
Instance Attribute Summary
- #address ⇒ Address readonly
- #awaited? ⇒ true | false readonly
-
#duration
readonly
Alias for #round_trip_time.
- #error ⇒ Exception (also: #failure) readonly
-
#failure
readonly
Alias for #error.
- #round_trip_time ⇒ Float (also: #duration) readonly
- #started_event ⇒ Monitoring::Event::ServerHeartbeatStarted 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_failed.rb', line 51
attr_reader :address
#awaited? ⇒ true
| false
(readonly)
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 66
def awaited? @awaited end
#duration (readonly)
Alias for #round_trip_time.
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 57
alias :duration :round_trip_time
#error ⇒ Exception
(readonly)
Also known as: #failure
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 60
attr_reader :error
#failure (readonly)
Alias for #error.
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 63
alias :failure :error
#round_trip_time ⇒ Float
(readonly)
Also known as: #duration
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 54
attr_reader :round_trip_time
#started_event ⇒ Monitoring::Event::ServerHeartbeatStarted (readonly)
# File 'lib/mongo/monitoring/event/server_heartbeat_failed.rb', line 74
attr_reader :started_event
Instance Method Details
#summary ⇒ String
Note:
This method is experimental and subject to change.
Returns a concise yet useful summary of the event.