govuk_app_config 2.8.2 → 2.8.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
  SHA256:
3
- metadata.gz: bfa87f684df24220687512ce9cfe0460b6120060adfac81abc42b370677aa7ac
4
- data.tar.gz: 937419626d13a54f7946bc3a57093b29347cea5098ea6a18820287ae97b27936
3
+ metadata.gz: 9fccd65df32419e21a65fae91568840f4c7c6b111d2386ffc633e940352d3ad3
4
+ data.tar.gz: 613f34451cdb152bf35cfe1f5ae300c6ddf64931cf182aa36dfe486202514f36
5
5
  SHA512:
6
- metadata.gz: af58922a495c6ad99551f068bd7edcdd8a1c0771216e8aef90dcf4890d5e5628f30b7d034bea3119dd479de642ea648e735ea415f6c9ec9cfecb0bd9dc79eb08
7
- data.tar.gz: a944b1a576c9bff262fbef40b79d7225df6e677044f4133216e27d06a3c7b35d287ba582d06b35df79ad4a1082c365e4d9896a8c66390c2b1aa9a69a56224c09
6
+ metadata.gz: 0dc8c194c93c515a222f3256f9611ddeb621785776b4c637f63adf586b29d978d373d29dd781eec7b6ae7538dd511ff96c66c5dc885454f6495146a59397ba1e
7
+ data.tar.gz: 528cfb7a65d10637edb6a5b149ad9cff2b33851e5de7d1c1c858c201256d679064fcaf73016bf946017a69a26c98cb7851d5cd83c4b4484bc8a9f9b0b47debf1
@@ -1,3 +1,7 @@
1
+ # 2.8.3
2
+
3
+ * Add new Redis healthcheck and relevant tests (https://github.com/alphagov/govuk_app_config/pull/183)
4
+
1
5
  # 2.8.2
2
6
 
3
7
  * Allow apps to configure the host and protocol for Statsd ([#180](https://github.com/alphagov/govuk_app_config/pull/180))
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "2.8.2".freeze
2
+ VERSION = "2.8.3".freeze
3
3
  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.2
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-07 00:00:00.000000000 Z
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