Class: Legion::Extensions::Health::Transport::Messages::Watchdog
- Inherits:
-
Transport::Message
- Object
- Transport::Message
- Legion::Extensions::Health::Transport::Messages::Watchdog
- Defined in:
- lib/legion/extensions/health/transport/messages/watchdog.rb
Instance Method Summary collapse
Instance Method Details
#expiration ⇒ Object
7 8 9 |
# File 'lib/legion/extensions/health/transport/messages/watchdog.rb', line 7 def expiration 5000 end |
#routing_key ⇒ Object
3 4 5 |
# File 'lib/legion/extensions/health/transport/messages/watchdog.rb', line 3 def routing_key 'health' end |
#validate ⇒ Object
11 12 13 14 15 |
# File 'lib/legion/extensions/health/transport/messages/watchdog.rb', line 11 def validate raise 'status should be a string' unless [:status].is_a?(String) || [:status].nil? @valid = true end |