ring-sqa 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 0592b40102f2a7cb81ea581cfe6f2005383a0bac
4
- data.tar.gz: 061a9549be762526b5faf11c495eacd7ec2dfbac
3
+ metadata.gz: 0c87d85ec1ff9b1daf33b01f7ebe576bb5ad11a2
4
+ data.tar.gz: e082af98b466f6ceaf40738791152b9e2dc3e3dc
5
5
  SHA512:
6
- metadata.gz: 5a607c6558d9b15730247700ec10c474c59152a1c8be20223a9bbce7a96f7a0c46ebaf560885c75d669a000bb0b77f1b649721e8c7d169ca8f0bd860c7a37244
7
- data.tar.gz: b349bfc5243e2d2a6cda4ebf6dfadcb8649acaa5cbef58298bdfb752c580964d77ff0ad3799104a090b9f2a240a6c2812e7d5de1da97b210b68113f3be789212
6
+ metadata.gz: 5543b7a43d7669a37ab72886f01525e0a31d42497e5af6b2f145451f4ff7b38e0d2089ce31cfd51314420fd26dcaddf6ccd22c4dca8b6cef51a8982beade2cbd
7
+ data.tar.gz: 74a9ab99f4a392da8c2d5ca617f6a50aaabc2e5ba378c92b868347aeb972f2f4f9fdbde31a7c29b983f0c07c30e7ec70ef5d899ea39ba0566ed8e1013fbdd9e7
@@ -44,7 +44,11 @@ class SQA
44
44
 
45
45
  def compose_message alarm_buffer
46
46
  exceeding_nodes = alarm_buffer.exceeding_nodes
47
- msg = {short: "#{@hostname}: raising #{@afi} alarm - #{exceeding_nodes.size} new nodes down"}
47
+ if exceeding_nodes.size > 0
48
+ msg = {short: "#{@hostname}: raising #{@afi} alarm - #{exceeding_nodes.size} new nodes down"}
49
+ else
50
+ msg = {short: "#{@hostname}: raising #{@afi} alarm - many nodes were unreachable in the last monitoring period, there is likely network instability. This could be down to your ring node, its local network, or disruption of peering and/or upstream networks (for example instability at an IXP)."}
51
+ end
48
52
  exceeding_nodes = exceeding_nodes.map { |node| @nodes.get node }
49
53
 
50
54
  addr_len = @afi == 'ipv6' ? 40 : 15
data/ring-sqa.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ring-sqa'
3
- s.version = '0.1.7'
3
+ s.version = '0.1.8'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti', 'Job Snijders' ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ring-sqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-03 00:00:00.000000000 Z
12
+ date: 2015-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop