flapjack 0.7.8 → 0.7.9
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.9 - 2013-06-04
|
4
|
+
- Feature: Include summary and details in the /status API call gh-179 (@ali-graham)
|
5
|
+
|
3
6
|
# 0.7.8 - 2013-05-30
|
4
7
|
- Feature: support multiline check output (thanks @bs-github) gh-100 (@jessereynolds)
|
5
8
|
- Bug: notification rule with no entities or entity tags not being allowed gh-193 (@jessereynolds)
|
@@ -584,14 +584,16 @@ module Flapjack
|
|
584
584
|
entity_check = Flapjack::Data::EntityCheck.for_entity(entity,
|
585
585
|
check, :redis => redis)
|
586
586
|
return if entity_check.nil?
|
587
|
-
{'name'
|
588
|
-
'state'
|
589
|
-
'
|
590
|
-
'
|
591
|
-
'
|
592
|
-
'
|
593
|
-
'
|
594
|
-
'
|
587
|
+
{'name' => check,
|
588
|
+
'state' => entity_check.state,
|
589
|
+
'summary' => entity_check.summary,
|
590
|
+
'details' => entity_check.details,
|
591
|
+
'in_unscheduled_maintenance' => entity_check.in_unscheduled_maintenance?,
|
592
|
+
'in_scheduled_maintenance' => entity_check.in_scheduled_maintenance?,
|
593
|
+
'last_update' => entity_check.last_update,
|
594
|
+
'last_problem_notification' => entity_check.last_problem_notification,
|
595
|
+
'last_recovery_notification' => entity_check.last_recovery_notification,
|
596
|
+
'last_acknowledgement_notification' => entity_check.last_acknowledgement_notification}
|
595
597
|
end
|
596
598
|
|
597
599
|
# following a callback-heavy pattern -- feels like nodejs :)
|
data/lib/flapjack/version.rb
CHANGED
@@ -91,6 +91,8 @@ describe 'Flapjack::Gateways::API', :sinatra => true, :logger => true, :json =>
|
|
91
91
|
now = Time.now.to_i
|
92
92
|
|
93
93
|
entity_check.should_receive(:state).and_return('OK')
|
94
|
+
entity_check.should_receive(:summary).and_return('not bad')
|
95
|
+
entity_check.should_receive(:details).and_return(nil)
|
94
96
|
entity_check.should_receive(:in_unscheduled_maintenance?).and_return(false)
|
95
97
|
entity_check.should_receive(:in_scheduled_maintenance?).and_return(false)
|
96
98
|
entity_check.should_receive(:last_update).and_return(now - 30)
|
@@ -104,6 +106,8 @@ describe 'Flapjack::Gateways::API', :sinatra => true, :logger => true, :json =>
|
|
104
106
|
last_response.should be_ok
|
105
107
|
last_response.body.should == [{'name' => check,
|
106
108
|
'state' => 'OK',
|
109
|
+
'summary' => 'not bad',
|
110
|
+
'details' => nil,
|
107
111
|
'in_unscheduled_maintenance' => false,
|
108
112
|
'in_scheduled_maintenance' => false,
|
109
113
|
'last_update' => (now - 30),
|
@@ -129,6 +133,8 @@ describe 'Flapjack::Gateways::API', :sinatra => true, :logger => true, :json =>
|
|
129
133
|
now = Time.now.to_i
|
130
134
|
|
131
135
|
entity_check.should_receive(:state).and_return('OK')
|
136
|
+
entity_check.should_receive(:summary).and_return('not bad')
|
137
|
+
entity_check.should_receive(:details).and_return(nil)
|
132
138
|
entity_check.should_receive(:in_unscheduled_maintenance?).and_return(false)
|
133
139
|
entity_check.should_receive(:in_scheduled_maintenance?).and_return(false)
|
134
140
|
entity_check.should_receive(:last_update).and_return(now - 30)
|
@@ -142,6 +148,8 @@ describe 'Flapjack::Gateways::API', :sinatra => true, :logger => true, :json =>
|
|
142
148
|
last_response.should be_ok
|
143
149
|
last_response.body.should == {'name' => nw_check,
|
144
150
|
'state' => 'OK',
|
151
|
+
'summary' => 'not bad',
|
152
|
+
'details' => nil,
|
145
153
|
'in_unscheduled_maintenance' => false,
|
146
154
|
'in_scheduled_maintenance' => false,
|
147
155
|
'last_update' => (now - 30),
|
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.9
|
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-
|
14
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: dante
|
@@ -553,7 +553,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
553
553
|
version: '0'
|
554
554
|
segments:
|
555
555
|
- 0
|
556
|
-
hash:
|
556
|
+
hash: 4072946799112620353
|
557
557
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
558
558
|
none: false
|
559
559
|
requirements:
|
@@ -562,7 +562,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
562
562
|
version: '0'
|
563
563
|
segments:
|
564
564
|
- 0
|
565
|
-
hash:
|
565
|
+
hash: 4072946799112620353
|
566
566
|
requirements: []
|
567
567
|
rubyforge_project:
|
568
568
|
rubygems_version: 1.8.23
|