flapjack 0.7.35 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -1
- data/Gemfile +3 -4
- data/Guardfile +1 -1
- data/README.md +38 -19
- data/Rakefile +1 -3
- data/etc/flapjack_config.yaml.example +11 -1
- data/features/steps/cli_steps.rb +3 -3
- data/features/steps/events_steps.rb +7 -6
- data/features/steps/flapjack-netsaint-parser_steps.rb +8 -8
- data/features/steps/notifications_steps.rb +10 -10
- data/features/steps/packaging-lintian_steps.rb +5 -9
- data/features/steps/time_travel_steps.rb +1 -1
- data/flapjack.gemspec +4 -3
- data/lib/flapjack/data/contact.rb +78 -6
- data/lib/flapjack/data/entity.rb +11 -2
- data/lib/flapjack/data/notification_rule.rb +67 -59
- data/lib/flapjack/data/semaphore.rb +44 -0
- data/lib/flapjack/gateways/api.rb +24 -28
- data/lib/flapjack/gateways/api/contact_methods.rb +1 -2
- data/lib/flapjack/gateways/api/entity_methods.rb +3 -3
- data/lib/flapjack/gateways/jsonapi.rb +249 -0
- data/lib/flapjack/gateways/jsonapi/contact_methods.rb +544 -0
- data/lib/flapjack/gateways/jsonapi/entity_check_presenter.rb +217 -0
- data/lib/flapjack/gateways/jsonapi/entity_methods.rb +350 -0
- data/lib/flapjack/gateways/jsonapi/entity_presenter.rb +75 -0
- data/lib/flapjack/gateways/jsonapi/rack/json_params_parser.rb +32 -0
- data/lib/flapjack/gateways/web.rb +78 -12
- data/lib/flapjack/gateways/web/public/css/bootstrap-theme.css +397 -0
- data/lib/flapjack/gateways/web/public/css/bootstrap-theme.min.css +7 -0
- data/lib/flapjack/gateways/web/public/css/bootstrap.css +7118 -0
- data/lib/flapjack/gateways/web/public/css/bootstrap.min.css +6 -8
- data/lib/flapjack/gateways/web/public/css/font-awesome.css +1338 -0
- data/lib/flapjack/gateways/web/public/css/font-awesome.min.css +4 -0
- data/lib/flapjack/gateways/web/public/css/screen.css +80 -0
- data/lib/flapjack/gateways/web/public/css/select2-bootstrap.css +87 -0
- data/lib/flapjack/gateways/web/public/css/select2.css +615 -0
- data/lib/flapjack/gateways/web/public/fonts/FontAwesome.otf +0 -0
- data/lib/flapjack/gateways/web/public/fonts/fontawesome-webfont.eot +0 -0
- data/lib/flapjack/gateways/web/public/fonts/fontawesome-webfont.svg +414 -0
- data/lib/flapjack/gateways/web/public/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/flapjack/gateways/web/public/fonts/fontawesome-webfont.woff +0 -0
- data/lib/flapjack/gateways/web/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/flapjack/gateways/web/public/fonts/glyphicons-halflings-regular.svg +229 -0
- data/lib/flapjack/gateways/web/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/flapjack/gateways/web/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/flapjack/gateways/web/public/img/flapjack-2013-notext-transparent-300-300.png +0 -0
- data/lib/flapjack/gateways/web/public/img/select2.png +0 -0
- data/lib/flapjack/gateways/web/public/img/select2x2.png +0 -0
- data/lib/flapjack/gateways/web/public/js/backbone-min.js +2 -0
- data/lib/flapjack/gateways/web/public/js/backbone.js +1581 -0
- data/lib/flapjack/gateways/web/public/js/backbone.jsonapi.js +75 -0
- data/lib/flapjack/gateways/web/public/js/bootstrap.js +2276 -0
- data/lib/flapjack/gateways/web/public/js/contacts.js +225 -0
- data/lib/flapjack/gateways/web/public/js/jquery-1.10.2.js +9789 -0
- data/lib/flapjack/gateways/web/public/js/jquery-1.10.2.min.js +6 -0
- data/lib/flapjack/gateways/web/public/js/select2.js +3255 -0
- data/lib/flapjack/gateways/web/public/js/select2.min.js +22 -0
- data/lib/flapjack/gateways/web/public/js/underscore-min.js +6 -0
- data/lib/flapjack/gateways/web/public/js/underscore.js +1276 -0
- data/lib/flapjack/gateways/web/views/check.html.erb +423 -193
- data/lib/flapjack/gateways/web/views/checks.html.erb +51 -71
- data/lib/flapjack/gateways/web/views/contact.html.erb +142 -164
- data/lib/flapjack/gateways/web/views/contacts.html.erb +20 -40
- data/lib/flapjack/gateways/web/views/edit_contacts.html.erb +83 -0
- data/lib/flapjack/gateways/web/views/entities.html.erb +18 -37
- data/lib/flapjack/gateways/web/views/entity.html.erb +46 -65
- data/lib/flapjack/gateways/web/views/index.html.erb +6 -27
- data/lib/flapjack/gateways/web/views/layout.erb +95 -0
- data/lib/flapjack/gateways/web/views/self_stats.html.erb +100 -114
- data/lib/flapjack/pikelet.rb +4 -2
- data/lib/flapjack/version.rb +1 -1
- data/spec/lib/flapjack/coordinator_spec.rb +120 -120
- data/spec/lib/flapjack/data/contact_spec.rb +66 -58
- data/spec/lib/flapjack/data/entity_check_spec.rb +179 -179
- data/spec/lib/flapjack/data/entity_spec.rb +71 -71
- data/spec/lib/flapjack/data/event_spec.rb +34 -30
- data/spec/lib/flapjack/data/message_spec.rb +6 -6
- data/spec/lib/flapjack/data/notification_rule_spec.rb +24 -24
- data/spec/lib/flapjack/data/notification_spec.rb +19 -19
- data/spec/lib/flapjack/data/semaphore_spec.rb +24 -0
- data/spec/lib/flapjack/data/tag_spec.rb +11 -10
- data/spec/lib/flapjack/gateways/api/contact_methods_spec.rb +201 -201
- data/spec/lib/flapjack/gateways/api/entity_check_presenter_spec.rb +55 -55
- data/spec/lib/flapjack/gateways/api/entity_methods_spec.rb +257 -257
- data/spec/lib/flapjack/gateways/api/entity_presenter_spec.rb +26 -26
- data/spec/lib/flapjack/gateways/api_spec.rb +1 -1
- data/spec/lib/flapjack/gateways/email_spec.rb +4 -4
- data/spec/lib/flapjack/gateways/jabber_spec.rb +77 -77
- data/spec/lib/flapjack/gateways/jsonapi/contact_methods_spec.rb +830 -0
- data/spec/lib/flapjack/gateways/jsonapi/entity_check_presenter_spec.rb +211 -0
- data/spec/lib/flapjack/gateways/jsonapi/entity_methods_spec.rb +863 -0
- data/spec/lib/flapjack/gateways/jsonapi/entity_presenter_spec.rb +108 -0
- data/spec/lib/flapjack/gateways/jsonapi_spec.rb +8 -0
- data/spec/lib/flapjack/gateways/oobetet_spec.rb +35 -35
- data/spec/lib/flapjack/gateways/pagerduty_spec.rb +40 -40
- data/spec/lib/flapjack/gateways/sms_messagenet_spec.rb +3 -3
- data/spec/lib/flapjack/gateways/web/views/check.html.erb_spec.rb +1 -1
- data/spec/lib/flapjack/gateways/web/views/contact.html.erb_spec.rb +5 -5
- data/spec/lib/flapjack/gateways/web/views/index.html.erb_spec.rb +1 -1
- data/spec/lib/flapjack/gateways/web_spec.rb +73 -74
- data/spec/lib/flapjack/logger_spec.rb +13 -13
- data/spec/lib/flapjack/pikelet_spec.rb +33 -33
- data/spec/lib/flapjack/processor_spec.rb +22 -22
- data/spec/lib/flapjack/redis_pool_spec.rb +1 -1
- data/spec/lib/flapjack/utility_spec.rb +12 -12
- data/spec/spec_helper.rb +9 -9
- data/spec/support/erb_view_helper.rb +4 -0
- metadata +107 -96
- data/lib/flapjack/gateways/web/public/css/flapjack.css +0 -49
- data/lib/flapjack/gateways/web/views/_css.html.erb +0 -42
- data/lib/flapjack/gateways/web/views/_foot.html.erb +0 -3
- data/lib/flapjack/gateways/web/views/_head.html.erb +0 -5
- data/lib/flapjack/gateways/web/views/_nav.html.erb +0 -10
@@ -1,49 +0,0 @@
|
|
1
|
-
/* Sticky footer styles
|
2
|
-
-------------------------------------------------- */
|
3
|
-
|
4
|
-
html,
|
5
|
-
body {
|
6
|
-
height: 100%;
|
7
|
-
/* The html and body elements cannot have any padding or margin. */
|
8
|
-
}
|
9
|
-
|
10
|
-
/* Wrapper for page content to push down footer */
|
11
|
-
#wrap {
|
12
|
-
min-height: 100%;
|
13
|
-
height: auto !important;
|
14
|
-
height: 100%;
|
15
|
-
/* Negative indent footer by it's height */
|
16
|
-
margin: 0 auto -40px;
|
17
|
-
}
|
18
|
-
|
19
|
-
/* Set the fixed height of the footer here */
|
20
|
-
#push,
|
21
|
-
#footer {
|
22
|
-
height: 40px;
|
23
|
-
}
|
24
|
-
#footer {
|
25
|
-
background-color: #f5f5f5;
|
26
|
-
}
|
27
|
-
|
28
|
-
/* Lastly, apply responsive CSS fixes as necessary */
|
29
|
-
@media (max-width: 767px) {
|
30
|
-
#footer {
|
31
|
-
margin-left: -20px;
|
32
|
-
margin-right: -20px;
|
33
|
-
padding-left: 20px;
|
34
|
-
padding-right: 20px;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
/* Custom page CSS
|
41
|
-
-------------------------------------------------- */
|
42
|
-
/* Not required for template or sticky footer method. */
|
43
|
-
|
44
|
-
.container {
|
45
|
-
}
|
46
|
-
.container .credit {
|
47
|
-
margin: 10px 0;
|
48
|
-
}
|
49
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<style type="text/css">
|
2
|
-
* { margin: 0; padding: 0; }
|
3
|
-
html { font-size: 62.5%; }
|
4
|
-
body { font-size: 16px; }
|
5
|
-
div#wrapper {
|
6
|
-
margin: 24px auto;
|
7
|
-
width: 1000px;
|
8
|
-
}
|
9
|
-
h1, h2, h3, h4, h5 {
|
10
|
-
font-family: Helvetica Neue, sans-serif;
|
11
|
-
margin-bottom: 12px;
|
12
|
-
}
|
13
|
-
table {
|
14
|
-
text-align: left;
|
15
|
-
width: 100%;
|
16
|
-
}
|
17
|
-
table th {
|
18
|
-
font-family: Helvetica Neue, sans-serif;
|
19
|
-
background-color: #eee;
|
20
|
-
}
|
21
|
-
table td, table th {
|
22
|
-
padding: 4px;
|
23
|
-
}
|
24
|
-
table td.critical {
|
25
|
-
background-color: #fb9a99;
|
26
|
-
}
|
27
|
-
table td.unknown {
|
28
|
-
background-color: #fb9a99;
|
29
|
-
}
|
30
|
-
table td.down {
|
31
|
-
background-color: #fb9a99;
|
32
|
-
}
|
33
|
-
table td.warning {
|
34
|
-
background-color: #f9bb34;
|
35
|
-
}
|
36
|
-
table td.ok {
|
37
|
-
background-color: #B2DF8A;
|
38
|
-
}
|
39
|
-
table td.up {
|
40
|
-
background-color: #B2DF8A;
|
41
|
-
}
|
42
|
-
</style>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2
|
-
<link rel="stylesheet" href="/css/bootstrap.min.css" media="screen">
|
3
|
-
<link rel="stylesheet" href="/css/flapjack.css" media="screen">
|
4
|
-
<link rel="stylesheet" href="/css/bootstrap-responsive.min.css" media="screen">
|
5
|
-
<link rel="shortcut icon" href="/img/flapjack-favicon-64-32-24-16.ico"> <!-- thank you http://xiconeditor.com/ -->
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<div>
|
2
|
-
<a title="Summary" href="/"><img alt="Flapjack" src="/img/flapjack-2013-notext-transparent-25-40.png" width="25" height="40"></a>
|
3
|
-
<a title="Summary" href="/">Summary</a> |
|
4
|
-
<a title="All Entities" href="/entities_all">All Entities</a> |
|
5
|
-
<a title="Failing Entities" href="/entities_failing">Failing Entities</a> |
|
6
|
-
<a title="All Checks" href="/checks_all">All Checks</a> |
|
7
|
-
<a title="Failing Checks" href="/checks_failing">Failing Checks</a> |
|
8
|
-
<a title="Contacts" href="/contacts">Contacts</a> |
|
9
|
-
<a title="Internal Statistics" href="/self_stats">Internal Statistics</a>
|
10
|
-
</div>
|