lib/legion/extensions/node/transport/messages/beat.rb in lex-node-0.1.7 vs lib/legion/extensions/node/transport/messages/beat.rb in lex-node-0.2.0

- old
+ new

@@ -1,9 +1,9 @@ module Legion::Extensions::Node::Transport::Messages class Beat < Legion::Transport::Message def routing_key - 'health' + 'status' end def type 'heartbeat' end @@ -15,10 +15,10 @@ def encrypt? false end def message - hash = { hostname: Legion::Settings[:client][:hostname], pid: Process.pid, timestamp: Time.now } + hash = { name: Legion::Settings[:client][:hostname], pid: Process.pid, timestamp: Time.now } hash[:status] = @options[:status].nil? ? 'healthy' : @options[:status] hash end def validate