Class: Easymon::RedisCheck
- Inherits:
-
Object
- Object
- Easymon::RedisCheck
- Defined in:
- lib/easymon/checks/redis_check.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(config) ⇒ RedisCheck
constructor
A new instance of RedisCheck.
Constructor Details
#initialize(config) ⇒ RedisCheck
Returns a new instance of RedisCheck.
7 8 9 |
# File 'lib/easymon/checks/redis_check.rb', line 7 def initialize(config) self.config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'lib/easymon/checks/redis_check.rb', line 5 def config @config end |
Instance Method Details
#check ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/easymon/checks/redis_check.rb', line 11 def check check_status = redis_up? if check_status = "Up" else = "Down" end [check_status, ] end |