Method: OkComputer::Neo4jCheck#check
- Defined in:
- lib/ok_computer/built_in_checks/neo4j_check.rb
#check ⇒ Object
| 3 4 5 6 7 8 9 10 11 12 13 | # File 'lib/ok_computer/built_in_checks/neo4j_check.rb', line 3 def check begin #Checks the connection for a 200 connected = Neo4j::Session.current.connection.head.success? url = Neo4j::Session.current.connection.url_prefix.to_s "Connected to neo4j on #{url}" if connected rescue Faraday::Error::ConnectionFailed => e mark_failure "Error: #{e.}" end end |