riemann-dash 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6101ce9bb7b5d9c11c24673be2a5b3c0399f2a3
4
- data.tar.gz: e19a97d12f65736cb9137fef3f1dc6b4bcfb59e7
3
+ metadata.gz: c5293b9ead848b26ceb29f3d4cb1e9366573f4e1
4
+ data.tar.gz: a00f02f7ed7267e059a31fc3bea29eea9096dc6e
5
5
  SHA512:
6
- metadata.gz: b762f4b990ec0375e49eab17659ad17ecc03e11c6f3a009aa5045390cff70aafdf60f0a26dca9ed0617b78ed254ad50728445e617060ab9e1964678e385f6c9c
7
- data.tar.gz: 7ed47f5330e26204182463aafdadb2371c6d74bbeb51a2c9882259f6aa594f69a3a67d94ea3c572a9a4669a97a092d2a30978df9e01df783566d72eee2b253a0
6
+ metadata.gz: 9022ae3dfdfcffe90b9a8372edd524e045b99f34b74fb596926ff42d9938c97dcdeb0a493b4b4dbf13d847c5eea15bc7fefe55804ad269a1137002b6307ed900
7
+ data.tar.gz: 86c4d4c5f86356d8847fd3547198eedf76c7c331662554dd2fa4b2d54922ad71d33fbc88071c73e85a6a2ab233ba2d631be68fbf6837a66c480509849204a4f2
@@ -237,7 +237,7 @@ dash = (function() {
237
237
  keys.bind(80, subs.toggle); // p
238
238
  keys.bind(82, reload); // r
239
239
  keys.bind(83, save); // s
240
- keys.bind(67, showconfig); // c
240
+ keys.bind(87, showconfig); // w
241
241
  keys.bind(191, help); // ?
242
242
  keys.bind(49, function(e) { e.altKey && switchWorkspace(workspaces[0]) });
243
243
  keys.bind(50, function(e) { e.altKey && switchWorkspace(workspaces[1]) });
@@ -15,7 +15,7 @@ var toolbar = (function() {
15
15
  var pager = $('<div class="pager">');
16
16
  var load = $('<div class="load"><div class="bar load1" /><div class="bar load5" /><span title="1- and 5-second subscription manager load averages">Load</span></div>');
17
17
  var server = $('<input class="server" type="text" name="text">');
18
- var server_type = $('<div class="server"><label><input type="radio" id="ws" name="server_type" value="ws" checked>websockets</label><input type="radio" id="sse" name="server_type" value="sse">sse</label></div>');
18
+ var server_type = $('<div class="server"><label><input type="radio" id="ws" name="server_type" value="ws" checked>websockets</label><label><input type="radio" id="sse" name="server_type" value="sse">sse</label></div>');
19
19
  var server_type_selector = $("input[name=server_type]");
20
20
  var server_type_sse_selector = $("input#ws");
21
21
  var server_type_ws_selector = $("input#sse");
@@ -16,6 +16,7 @@
16
16
  this.col_sort = json.col_sort || "lexical";
17
17
  this.row_fn = util.extract_fn(json.rows) || util.extract_fn('host');
18
18
  this.col_fn = util.extract_fn(json.cols) || util.extract_fn('service');
19
+ this.description = json.description;
19
20
  this.clickFocusable = true;
20
21
 
21
22
  // Initial display
@@ -57,7 +58,8 @@
57
58
  rows: this.rows_str,
58
59
  cols: this.cols_str,
59
60
  row_sort: this.row_sort,
60
- col_sort: this.col_sort
61
+ col_sort: this.col_sort,
62
+ description: this.description
61
63
  });
62
64
  };
63
65
 
@@ -83,7 +85,9 @@
83
85
  "</select><br />" +
84
86
  "<label for='max'>Max</label>" +
85
87
  "<input type='text' name='max' value=\"{{-max}}\" /><br />" +
86
- "<span class='desc'>'all', 'host', 'service', or any number.</span>"
88
+ "<span class='desc'>'all', 'host', 'service', or any number.</span><br />" +
89
+ "<label for='description'>Description</label>" +
90
+ "<textarea name='description'>{{-description}}</textarea><br />"
87
91
  );
88
92
 
89
93
  Grid.prototype.editForm = function() {
@@ -219,8 +223,23 @@
219
223
  td.attr('class', "state box " + event.state);
220
224
 
221
225
  // Description
222
- td.attr('title', event.host + ' ' + event.service + "\n" + event.state +
223
- "\nreceived at " + new Date(event.time).toString() +
226
+ var list = [];
227
+ if(this.json().description != undefined){
228
+ list = this.json().description.split(',');
229
+ }
230
+ var description = "";
231
+ list.forEach(function(input){
232
+ if(input === "all"){
233
+ for(k in event){
234
+ description += k + ': ' + event[k] + '\n';
235
+ }
236
+ }
237
+ if(event[input] != undefined){
238
+ description += input + ": " + event[input] + '\n';
239
+ }
240
+ });
241
+ td.attr('title', event.host + ' ' + event.service + "\n" + event.state + '\n' + description +
242
+ "received at " + new Date(event.time).toString() +
224
243
  "\nexpiring at " + new Date(event.time + event.ttl * 1000).toString() +
225
244
  (event.description ? ("\n\n" + event.description) : ""));
226
245
 
@@ -1,4 +1,4 @@
1
1
  module Riemann; end
2
2
  module Riemann::Dash
3
- VERSION = '0.2.13'
3
+ VERSION = '0.2.14'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kingsbury
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project: riemann-dash
217
- rubygems_version: 2.4.5
217
+ rubygems_version: 2.5.2
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: HTTP dashboard for the distributed event system Riemann.