heartcheck-redis 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/heartcheck/checks/redis.rb +14 -0
- data/lib/heartcheck/redis/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb74b0e8aa480ee946c789ba9d22526dc8497ae7d94e901bedbcd4f8e4b84953
|
4
|
+
data.tar.gz: 4f21e16df9bab2a9f22513b436001e774d4174ed7c887c860889febfa62890f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabe228fc0101080966fb65ddfc7eadebe0cf0bdf2b63b6186443d378502a068dca44cc64bb38d56852ca4b6701b9402fef6795d11d25b38d1711b1162e8ea79
|
7
|
+
data.tar.gz: cb35b6f7c59505cf8e5fa090b3b287395c093be196d46be66144426e1d4725182e5ac68a8908149e0a1fbcee0b9bf903426d5f55d3c000f291fa6f78bb5dae7f
|
@@ -16,6 +16,20 @@ module Heartcheck
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
# list services uri info
|
20
|
+
#
|
21
|
+
# @return [Array]
|
22
|
+
def uri_info
|
23
|
+
services.map do |s|
|
24
|
+
opts = s[:connection].connection
|
25
|
+
{
|
26
|
+
host: opts[:host],
|
27
|
+
port: opts[:port],
|
28
|
+
scheme: 'redis'.freeze
|
29
|
+
}
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
19
33
|
private
|
20
34
|
|
21
35
|
# test if can write on redis
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heartcheck-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Locaweb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-telnet
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.7.7
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: A redis checker.
|