Class: NewRelicPing::HealthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/new_relic_ping/health_controller.rb

Instance Method Summary collapse

Instance Method Details

#healthObject

Run the configured monitoring blocks Set the response times (return values) as HTTP headers return either ok or error status (error sent only if the configured block raises an exception)



14
15
16
# File 'app/controllers/new_relic_ping/health_controller.rb', line 14

def health
  send_response(*configuration.status_check)
end

#pingObject

Return an okay if the Application Server is alive



7
8
9
# File 'app/controllers/new_relic_ping/health_controller.rb', line 7

def ping
  send_response(:ok)
end