sensu-dashboard 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@
3
3
 
4
4
  var filtered_events = [];
5
5
  var filtered_events_count = 0;
6
+ var filter_unknown_checks = true;
6
7
 
7
8
  function capitaliseFirstLetter(string) {
8
9
  var newStr = '';
@@ -34,6 +35,12 @@ function fetchEvents() {
34
35
  for (var a in node) {
35
36
  var is_unknown = node[a]['status'] >= 3 || node[a]['status'] < 0;
36
37
 
38
+ if (filter_unknown_checks) {
39
+ if (node[a]['output'] == 'Unknown check') {
40
+ break;
41
+ }
42
+ }
43
+
37
44
  var dataObject = {
38
45
  identifier: SHA1(nodekey+a),
39
46
  client: nodekey,
@@ -183,6 +190,11 @@ $(document).ready(function() {
183
190
  }
184
191
  });
185
192
 
193
+ $('#filter_unknown_checks').change(function() {
194
+ filter_unknown_checks = !filter_unknown_checks;
195
+ fetchEvents();
196
+ });
197
+
186
198
  // TODO: fix clipboard support
187
199
  /*$('div#event_details_modal > div.event_detail_group > div.copy').click(function() {
188
200
  var currentVal = $(this).parent().find('div.event_detail').children().last().text();
@@ -1,5 +1,5 @@
1
1
  module Sensu
2
2
  module Dashboard
3
- VERSION = "0.6.2"
3
+ VERSION = "0.6.3"
4
4
  end
5
5
  end
@@ -1,5 +1,9 @@
1
1
  <h1>Current Events <span class="events_count">(<span id="event_count">0</span>)</span></h1>
2
2
 
3
+ <div style="padding-bottom: 7px;">
4
+ <input type="checkbox" checked="checked" id="filter_unknown_checks" style="margin-right: 7px;"/>Filter Unknown Checks
5
+ </div>
6
+
3
7
  <input type="text" id="autosuggest_filter" style="width: 300px;"/>
4
8
 
5
9
  <table id="events">
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Kolberg
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-22 00:00:00 -08:00
19
+ date: 2011-11-28 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency