Sha256: a279ec37c61ac992fca5dcafbbc4076002e0cc8b11de73ffd11892e0cee5c5f2

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

module Legion::Extensions::Health::Transport::Messages
  class Watchdog < Legion::Transport::Message
    def routing_key
      'health'
    end

    def expiration
      5000
    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

4 entries across 4 versions & 1 rubygems

Version Path
lex-health-0.1.5 lib/legion/extensions/health/transport/messages/watchdog.rb
lex-health-0.1.4 lib/legion/extensions/health/transport/messages/watchdog.rb
lex-health-0.1.3 lib/legion/extensions/health/transport/messages/watchdog.rb
lex-health-0.1.2 lib/legion/extensions/health/transport/messages/watchdog.rb