okcomputer 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ok_computer/built_in_checks/neo4j_check.rb +15 -0
- data/lib/ok_computer/version.rb +1 -1
- data/lib/okcomputer.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 982a7d2cd19650e5c51cfaf1d2ed4c396bd0f31e
|
4
|
+
data.tar.gz: 766113982b7f919cfea8c93044a25e43b06e980e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ae40d2a3778bb0b5619386a3aaef33e6e65d158cdcb2dc9a64fb55d060c750abb8cdb8ae8dad1ea75a860aafbfce8483030117f7224e929ecf7bc85bdc93eb
|
7
|
+
data.tar.gz: 854053993df4d9a4539fb3a7e35c3f1472d91544bc9534027208510bf37f597228ab6cb7bd51e88cbce62ae9b316ff6e4ebca166c469791af52ba7f929eb13f2
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module OkComputer
|
2
|
+
class Neo4jCheck < Check
|
3
|
+
def check
|
4
|
+
begin
|
5
|
+
#Checks the connection for a 200
|
6
|
+
connected = Neo4j::Session.current.connection.head.success?
|
7
|
+
url = Neo4j::Session.current.connection.url_prefix.to_s
|
8
|
+
mark_message "Connected to neo4j on #{url}" if connected
|
9
|
+
rescue Faraday::Error::ConnectionFailed => e
|
10
|
+
mark_failure
|
11
|
+
mark_message "Error: #{e.message}"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/ok_computer/version.rb
CHANGED
data/lib/okcomputer.rb
CHANGED
@@ -16,6 +16,7 @@ require "ok_computer/built_in_checks/delayed_job_backed_up_check"
|
|
16
16
|
require "ok_computer/built_in_checks/generic_cache_check"
|
17
17
|
require "ok_computer/built_in_checks/elasticsearch_check"
|
18
18
|
require "ok_computer/built_in_checks/mongoid_check"
|
19
|
+
require "ok_computer/built_in_checks/neo4j_check"
|
19
20
|
require "ok_computer/built_in_checks/mongoid_replica_set_check"
|
20
21
|
require "ok_computer/built_in_checks/rabbitmq_check"
|
21
22
|
require "ok_computer/built_in_checks/redis_check"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okcomputer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- lib/ok_computer/built_in_checks/http_check.rb
|
78
78
|
- lib/ok_computer/built_in_checks/mongoid_check.rb
|
79
79
|
- lib/ok_computer/built_in_checks/mongoid_replica_set_check.rb
|
80
|
+
- lib/ok_computer/built_in_checks/neo4j_check.rb
|
80
81
|
- lib/ok_computer/built_in_checks/rabbitmq_check.rb
|
81
82
|
- lib/ok_computer/built_in_checks/redis_check.rb
|
82
83
|
- lib/ok_computer/built_in_checks/resque_backed_up_check.rb
|