Class: Cassie::ConnectionHandler::Logging::ClusterConnectEvent
- Inherits:
-
ActiveSupport::Notifications::Event
- Object
- ActiveSupport::Notifications::Event
- Cassie::ConnectionHandler::Logging::ClusterConnectEvent
- Defined in:
- lib/cassie/connection_handler/logging/cluster_connect_event.rb
Defined Under Namespace
Modules: Inspector
Instance Method Summary collapse
Instance Method Details
#hosts ⇒ Object
4 5 6 |
# File 'lib/cassie/connection_handler/logging/cluster_connect_event.rb', line 4 def hosts payload[:hosts] || [] end |
#ips ⇒ Object
8 9 10 |
# File 'lib/cassie/connection_handler/logging/cluster_connect_event.rb', line 8 def ips hosts.map{ |h| h.ip.to_s } end |
#message ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/cassie/connection_handler/logging/cluster_connect_event.rb', line 12 def { event: "cassie.cluster.connect", duration: duration.round(1), hosts: ips, name: payload[:name] }.extend(Inspector) end |