class AbrilHeartbeat::MongoChecker

Public Class Methods

check!() click to toggle source
# File lib/abril_heartbeat/checkers/mongo_checker.rb, line 11
def self.check!
  MongoWrapper.check_status!
  ['OK', 'Everything is under control']
rescue => exception
  ['FAIL', exception.message]
end
module_name() click to toggle source
# File lib/abril_heartbeat/checkers/mongo_checker.rb, line 7
def self.module_name
  'MONGO'
end
running?() click to toggle source
# File lib/abril_heartbeat/checkers/mongo_checker.rb, line 3
def self.running?
  MongoWrapper.client?
end