Class: HeyDoctor::CheckApplicationHealthService

Inherits:
Object
  • Object
show all
Defined in:
app/services/hey_doctor/check_application_health_service.rb

Constant Summary collapse

SUCCESS =
{
  success: true,
  message: 'Application is running'
}.freeze
ERROR =
{
  success: false,
  message: 'Application down, call the firefighters'
}.freeze
START_COUNTER =
1
DEFAULT_PORT =
ENV['RAILS_PORT'] || ENV['PORT']

Class Method Summary collapse

Class Method Details

.callObject



18
19
20
21
22
# File 'app/services/hey_doctor/check_application_health_service.rb', line 18

def call
  return SUCCESS if responding?

  ERROR
end