Class: Legion::Extensions::Health::Transport::Messages::Watchdog

Inherits:
Transport::Message
  • Object
show all
Defined in:
lib/legion/extensions/health/transport/messages/watchdog.rb

Instance Method Summary collapse

Instance Method Details

#expirationObject



7
8
9
# File 'lib/legion/extensions/health/transport/messages/watchdog.rb', line 7

def expiration
  5000
end

#routing_keyObject



3
4
5
# File 'lib/legion/extensions/health/transport/messages/watchdog.rb', line 3

def routing_key
  'health'
end

#validateObject



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 @options[:status].is_a?(String) || @options[:status].nil?

  @valid = true
end