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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4e908ffeb6f9ee8702b205d5dc852cd4581ed38
4
- data.tar.gz: 55a249da9a68bbff47d426a4d68d34671335b53a
3
+ metadata.gz: 982a7d2cd19650e5c51cfaf1d2ed4c396bd0f31e
4
+ data.tar.gz: 766113982b7f919cfea8c93044a25e43b06e980e
5
5
  SHA512:
6
- metadata.gz: 48db7fb1180e66ce41e12efbdf6f7ce3eeee2f7371a986b26a8fc8c06b94577364816a8b19737b326ab3e6102a6f5c4f0fbf629dc9f126f58f595a3f26062c53
7
- data.tar.gz: 3179619d894d772d4100e4975e1bdec392915edcb795b7739e9c479bd778f9485c1cb758018cb474b60185006222ebb688efe9933fc78dd37648faa98f5c193a
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
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
  end
@@ -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.2
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-06-21 00:00:00.000000000 Z
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