Method: OkComputer::HttpCheck#check

Defined in:
lib/ok_computer/built_in_checks/http_check.rb

#checkObject

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
    mark_message "HTTP check successful"
  end
rescue => e
  mark_message "Error: '#{e}'"
  mark_failure
end