flapjack 0.7.21 → 0.7.22
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## Flapjack Changelog
|
2
2
|
|
3
|
+
# 0.7.22 - 2013-08-08
|
4
|
+
- Bug: fix potential exception in json serialisation of tags in notifications gh-281 (@jessereynolds)
|
5
|
+
|
3
6
|
# 0.7.21 - 2013-08-08
|
4
7
|
- Feature: make eneity search scopable by tags gh-89 (@jessereynolds)
|
5
8
|
- Feature: add benchmark rake task gh-259 (@jessereynolds)
|
@@ -90,6 +90,7 @@
|
|
90
90
|
<th>Warning Media</th>
|
91
91
|
<th>Critical Media</th>
|
92
92
|
<th>Time Restrictions</th>
|
93
|
+
<th>Blackholes</th>
|
93
94
|
</tr>
|
94
95
|
<% rules.each do |rule| %>
|
95
96
|
<tr>
|
@@ -99,6 +100,10 @@
|
|
99
100
|
<td><%= h( (rule.warning_media && !rule.warning_media.empty?) ? rule.warning_media.join(', ') : '-')%></td>
|
100
101
|
<td><%= h( (rule.critical_media && !rule.critical_media.empty?) ? rule.critical_media.join(', ') : '-') %></td>
|
101
102
|
<td><%= h(rule.time_restrictions) %></td>
|
103
|
+
<% blackholes = [] %>
|
104
|
+
<% blackholes << 'Warning' if rule.warning_blackhole %>
|
105
|
+
<% blackholes << 'Critical' if rule.critical_blackhole %>
|
106
|
+
<td><%= h(blackholes.join(', ')) %></td>
|
102
107
|
</tr>
|
103
108
|
<% end %>
|
104
109
|
</table>
|
data/lib/flapjack/notifier.rb
CHANGED
@@ -145,6 +145,10 @@ module Flapjack
|
|
145
145
|
:state => notification.event_state)
|
146
146
|
end
|
147
147
|
|
148
|
+
|
149
|
+
contents_tags = contents['tags']
|
150
|
+
contents['tags'] = contents_tags.is_a?(Set) ? contents_tags.to_a : contents_tags
|
151
|
+
|
148
152
|
# TODO consider changing Resque jobs to use raw blpop like the others
|
149
153
|
case media_type.to_sym
|
150
154
|
when :sms
|
data/lib/flapjack/processor.rb
CHANGED
@@ -245,7 +245,7 @@ module Flapjack
|
|
245
245
|
@redis.set("#{event.id}:last_#{event.state}_notification", timestamp) if event.failure?
|
246
246
|
@redis.rpush("#{event.id}:#{notification_type}_notifications", timestamp)
|
247
247
|
@redis.rpush("#{event.id}:#{event.state}_notifications", timestamp) if event.failure?
|
248
|
-
@logger.debug("Notification of type #{notification_type} is being generated for #{event.id}.
|
248
|
+
@logger.debug("Notification of type #{notification_type} is being generated for #{event.id}: " + event.inspect)
|
249
249
|
|
250
250
|
severity = Flapjack::Data::Notification.severity_for_event(event, max_notified_severity)
|
251
251
|
last_state = entity_check.historical_state_before(timestamp)
|
data/lib/flapjack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flapjack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-08-
|
14
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: dante
|
@@ -529,7 +529,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
529
529
|
version: '0'
|
530
530
|
segments:
|
531
531
|
- 0
|
532
|
-
hash:
|
532
|
+
hash: 525306744622522205
|
533
533
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
534
534
|
none: false
|
535
535
|
requirements:
|
@@ -538,7 +538,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
538
538
|
version: '0'
|
539
539
|
segments:
|
540
540
|
- 0
|
541
|
-
hash:
|
541
|
+
hash: 525306744622522205
|
542
542
|
requirements: []
|
543
543
|
rubyforge_project:
|
544
544
|
rubygems_version: 1.8.23
|