Method: OkComputer::HttpCheck#check
- Defined in:
- lib/ok_computer/built_in_checks/http_check.rb
#check ⇒ Object
Public: Return the status of the HTTP check
24 25 26 27 28 29 30 31 |
# File 'lib/ok_computer/built_in_checks/http_check.rb', line 24 def check if perform_request "HTTP check successful" end rescue => e "Error: '#{e}'" mark_failure end |