class Cassie::ConnectionHandler::Logging::ClusterConnectEvent

Public Instance Methods

hosts() click to toggle source
# File lib/cassie/connection_handler/logging/cluster_connect_event.rb, line 4
def hosts
  payload[:hosts] || []
end
ips() click to toggle source
# File lib/cassie/connection_handler/logging/cluster_connect_event.rb, line 8
def ips
  hosts.map{ |h| h.ip.to_s }
end
message() click to toggle source
# File lib/cassie/connection_handler/logging/cluster_connect_event.rb, line 12
def message
  {
    event: "cassie.cluster.connect",
    duration: duration.round(1),
    hosts: ips,
    name: payload[:name]
  }.extend(Inspector)
end