Class: Workarea::Monitoring::MongoidCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/monitoring/mongoid_check.rb

Instance Method Summary collapse

Instance Method Details

#checkObject



5
6
7
8
# File 'lib/workarea/monitoring/mongoid_check.rb', line 5

def check
  status = database_up?
  [status, status ? 'Up' : 'Down']
end