Sha256: 475258802cc56dbdc7871544ef5cf78ca480a6844532f0c6562a1363b5f93a50
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
module Legion::Extensions::Health::Transport::Messages class Watchdog < Legion::Transport::Message def routing_key 'health' end def expiration 5000 end # def message # hash = { hostname: Socket.gethostname, pid: Process.pid, timestamp: Time.now } # hash[:status] = @options[:status].nil? ? 'healthy' : @options[:status] # hash # end def validate raise 'status should be a string' unless @options[:status].is_a?(String) || @options[:status].nil? @valid = true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lex-health-0.1.1 | lib/legion/extensions/health/transport/messages/watchdog.rb |
lex-health-0.1.0 | lib/legion/extensions/health/transport/messages/watchdog.rb |