health_monitor 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
|
@@ -2,7 +2,7 @@ class <%= class_name %>Controller < ApplicationController
|
|
|
2
2
|
acts_as_health_monitor
|
|
3
3
|
|
|
4
4
|
# Built in checks
|
|
5
|
-
monitor_health :schema_check, :database_check
|
|
5
|
+
monitor_health :schema_check, :database_check#, :ey_agent_check
|
|
6
6
|
|
|
7
7
|
# Refer to the README at http://github.com/blythedunham/health_monitor
|
|
8
8
|
# for more examples
|
|
@@ -31,4 +31,5 @@ class <%= class_name %>Controller < ApplicationController
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
<% end -%>
|
|
34
|
+
|
|
34
35
|
end
|
data/health_monitor.gemspec
CHANGED
|
@@ -19,8 +19,7 @@ module HealthMonitor
|
|
|
19
19
|
def database_check
|
|
20
20
|
{
|
|
21
21
|
:status => ActiveRecord::Base.connection && ActiveRecord::Base.connection.active?,
|
|
22
|
-
:description => 'Active Database connection'
|
|
23
|
-
:message => "DATABASE CHECK #{ActiveRecord::Base.connection.active?}"
|
|
22
|
+
:description => 'Active Database connection'
|
|
24
23
|
}
|
|
25
24
|
end
|
|
26
25
|
|