govuk_app_config 2.8.2 → 2.8.3
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fccd65df32419e21a65fae91568840f4c7c6b111d2386ffc633e940352d3ad3
|
4
|
+
data.tar.gz: 613f34451cdb152bf35cfe1f5ae300c6ddf64931cf182aa36dfe486202514f36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc8c194c93c515a222f3256f9611ddeb621785776b4c637f63adf586b29d978d373d29dd781eec7b6ae7538dd511ff96c66c5dc885454f6495146a59397ba1e
|
7
|
+
data.tar.gz: 528cfb7a65d10637edb6a5b149ad9cff2b33851e5de7d1c1c858c201256d679064fcaf73016bf946017a69a26c98cb7851d5cd83c4b4484bc8a9f9b0b47debf1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,7 @@ require "govuk_app_config/govuk_healthcheck/checkup"
|
|
2
2
|
require "govuk_app_config/govuk_healthcheck/active_record"
|
3
3
|
require "govuk_app_config/govuk_healthcheck/mongoid"
|
4
4
|
require "govuk_app_config/govuk_healthcheck/rails_cache"
|
5
|
+
require "govuk_app_config/govuk_healthcheck/redis"
|
5
6
|
require "govuk_app_config/govuk_healthcheck/sidekiq_redis"
|
6
7
|
require "govuk_app_config/govuk_healthcheck/threshold_check"
|
7
8
|
require "govuk_app_config/govuk_healthcheck/sidekiq_queue_check"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module GovukHealthcheck
|
2
|
+
class Redis
|
3
|
+
def name
|
4
|
+
:redis
|
5
|
+
end
|
6
|
+
|
7
|
+
def status
|
8
|
+
client = ::Redis.new
|
9
|
+
|
10
|
+
client.set("healthcheck", "val")
|
11
|
+
client.get("healthcheck")
|
12
|
+
client.del("healthcheck")
|
13
|
+
|
14
|
+
client.close
|
15
|
+
|
16
|
+
GovukHealthcheck::OK
|
17
|
+
rescue StandardError
|
18
|
+
GovukHealthcheck::CRITICAL
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/govuk_app_config/govuk_healthcheck/checkup.rb
|
237
237
|
- lib/govuk_app_config/govuk_healthcheck/mongoid.rb
|
238
238
|
- lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
|
239
|
+
- lib/govuk_app_config/govuk_healthcheck/redis.rb
|
239
240
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_check.rb
|
240
241
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_queue_latency_check.rb
|
241
242
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
|