nutella_framework 0.4.24 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/VERSION +1 -1
- data/framework_components/monitoring-bot/monitoring-bot.rb +10 -3
- data/framework_components/monitoring-bot/startup +1 -1
- data/framework_components/monitoring-interface/.gitignore +0 -0
- data/framework_components/monitoring-interface/README.md +0 -0
- data/framework_components/monitoring-interface/bower.json +0 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/.bower.json +0 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/bower.json +0 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/mqttws31.js +0 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/readme.md +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/.bower.json +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/LICENSE +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/README.md +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/bower.json +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/nutella_lib.js +0 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/package.json +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface.html +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/animations.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/application-view-controller.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/cursor.css +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/d3.v3.min.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/graphics.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/instance-view-controller.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/page.css +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/tab-table.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.css +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-element.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-tab.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/window-view-controller.js +0 -0
- data/framework_components/monitoring-interface/css/alerts.css +0 -0
- data/framework_components/monitoring-interface/css/bootstrap.min.css +0 -0
- data/framework_components/monitoring-interface/css/cursor.css +0 -0
- data/framework_components/monitoring-interface/css/highlight.default.min.css +0 -0
- data/framework_components/monitoring-interface/css/page.css +0 -0
- data/framework_components/monitoring-interface/css/ui-application.css +0 -0
- data/framework_components/monitoring-interface/css/ui-connection-view.css +0 -0
- data/framework_components/monitoring-interface/css/ui-legend-view.css +0 -0
- data/framework_components/monitoring-interface/data/alert.json +0 -0
- data/framework_components/monitoring-interface/data/data.json +0 -0
- data/framework_components/monitoring-interface/data/data2.json +0 -0
- data/framework_components/monitoring-interface/data/data3.json +0 -0
- data/framework_components/monitoring-interface/data/data4.json +0 -0
- data/framework_components/monitoring-interface/data/message.json +0 -0
- data/framework_components/monitoring-interface/gulpfile.js +0 -0
- data/framework_components/monitoring-interface/img/arrow_white.svg +0 -0
- data/framework_components/monitoring-interface/img/arrow_white_right.svg +0 -0
- data/framework_components/monitoring-interface/img/back.svg +0 -0
- data/framework_components/monitoring-interface/img/cross_red_border_white.svg +0 -0
- data/framework_components/monitoring-interface/img/cross_red_border_white_mouseover.svg +0 -0
- data/framework_components/monitoring-interface/img/email_highlighted.svg +0 -0
- data/framework_components/monitoring-interface/index.html +0 -0
- data/framework_components/monitoring-interface/js/d3/layout/grid-layout.js +0 -0
- data/framework_components/monitoring-interface/js/d3/layout/radial-layout.js +0 -0
- data/framework_components/monitoring-interface/js/d3/plugin/graphics.js +0 -0
- data/framework_components/monitoring-interface/js/d3/plugin/tab-table.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/animations.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-application.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-connection-view.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-element.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-legend.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-notification.js +0 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-tab.js +0 -0
- data/framework_components/monitoring-interface/js/lib/JSXTransformer-0.12.2.js +0 -0
- data/framework_components/monitoring-interface/js/lib/bootstrap.min.js +0 -0
- data/framework_components/monitoring-interface/js/lib/d3.v3.min.js +0 -0
- data/framework_components/monitoring-interface/js/lib/highlight.min.js +0 -0
- data/framework_components/monitoring-interface/js/lib/jquery-1.10.0.min.js +0 -0
- data/framework_components/monitoring-interface/js/lib/nutella_lib.js +0 -0
- data/framework_components/monitoring-interface/js/lib/react-with-addons-0.12.2.js +0 -0
- data/framework_components/monitoring-interface/js/lib/underscore-min.js +0 -0
- data/framework_components/monitoring-interface/js/model/alerts-model.js +0 -0
- data/framework_components/monitoring-interface/js/model/applications-model.js +0 -0
- data/framework_components/monitoring-interface/js/model/messages-model.js +0 -0
- data/framework_components/monitoring-interface/js/notification/notification-center.js +0 -0
- data/framework_components/monitoring-interface/js/notification/notifications.js +0 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-alerts.js +0 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-message-send.js +0 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-messages.js +2 -2
- data/framework_components/monitoring-interface/js/react/src/ui-alerts.js +0 -0
- data/framework_components/monitoring-interface/js/react/src/ui-message-send.js +0 -0
- data/framework_components/monitoring-interface/js/react/src/ui-messages.js +2 -2
- data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js +0 -0
- data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js +0 -0
- data/framework_components/monitoring-interface/js/view-controller/view-controller.js +0 -0
- data/framework_components/monitoring-interface/js/view-controller/window-view-controller.js +0 -0
- data/framework_components/monitoring-interface/nutella.json +0 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf6e988b17c348fcf123bd5c4fddb50dbd91705f
|
|
4
|
+
data.tar.gz: 9546373c3e5ceba6fda814436cd1139c37de172a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81ef6f0abcb01d61defacf202b90c3cadd05b84f9b86b833a078a2abbbb4b5e84fdeb2e0d18205d7cb2b3e7feca80f951a1931a9b83fb00ee6872193ea72c04a
|
|
7
|
+
data.tar.gz: df0c4ecabc02d44e67acb0dd8cdae1c1048a756faa11a016950ade3e154590c1cc263f99148e0c6dd5c95ab8f55b4271c6d93f24f10ddcdf2866f0fbd0cf9914
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.25
|
|
@@ -5,6 +5,7 @@ require_relative '../../lib/commands/util/components_list'
|
|
|
5
5
|
require 'active_support/core_ext/object/deep_dup'
|
|
6
6
|
require 'mandrill'
|
|
7
7
|
require 'mongo'
|
|
8
|
+
require 'bson'
|
|
8
9
|
|
|
9
10
|
# Framework bots can access all the parameters they need directly
|
|
10
11
|
# from the configuration file and the runlist,
|
|
@@ -312,6 +313,7 @@ nutella.f.net.handle_requests_on_all_runs('monitoring/application', lambda do |r
|
|
|
312
313
|
end)
|
|
313
314
|
|
|
314
315
|
nutella.f.net.handle_requests_on_all_runs('monitoring/message', lambda do |request, appId, runId, from|
|
|
316
|
+
|
|
315
317
|
application = request['application']
|
|
316
318
|
instance = request['instance']
|
|
317
319
|
channel = request['channel']
|
|
@@ -320,16 +322,21 @@ nutella.f.net.handle_requests_on_all_runs('monitoring/message', lambda do |reque
|
|
|
320
322
|
|
|
321
323
|
messages = []
|
|
322
324
|
|
|
323
|
-
|
|
325
|
+
timestamp_low = (Time.now-3600).to_f # Last hour
|
|
326
|
+
timestamp_high = Time.now.to_f
|
|
327
|
+
object_id_low = BSON::ObjectId.from_string((timestamp_low).floor.to_s(16) + "0000000000000000")
|
|
328
|
+
object_id_high = BSON::ObjectId.from_string((timestamp_high).floor.to_s(16) + "0000000000000000")
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
collection .find({ '_id' => { '$gt' => object_id_low, '$lt' => object_id_high }, 'channel' => "/nutella/apps/#{application}/runs/#{instance}/#{channel}"}).sort({'_id' => -1}).limit(50).each do |message|
|
|
324
332
|
m = {
|
|
325
333
|
'from' => '',
|
|
326
334
|
'to' => '',
|
|
327
335
|
'from' => '',
|
|
328
|
-
'date' => message['_id'],
|
|
336
|
+
'date' => message['_id'].generation_time.getlocal.to_s,
|
|
329
337
|
'type' => message['message']['type'],
|
|
330
338
|
'payload' => message['message']['payload']
|
|
331
339
|
}
|
|
332
|
-
puts m['date']
|
|
333
340
|
messages.push(m)
|
|
334
341
|
end
|
|
335
342
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js
CHANGED
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js
CHANGED
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js
CHANGED
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.css
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js
CHANGED
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js
CHANGED
|
File without changes
|
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -46,7 +46,7 @@ var UIMessages = React.createClass({displayName: "UIMessages",
|
|
|
46
46
|
React.createElement("a", {"data-toggle": "collapse", "data-parent": "#accordion", href: "#collapse"+index, "aria-expanded": "true", "aria-controls": "collapse"+index},
|
|
47
47
|
React.createElement("div", {className: "panel-heading", role: "tab", id: "headingOne"},
|
|
48
48
|
React.createElement("h4", {className: "panel-title"},
|
|
49
|
-
date.
|
|
49
|
+
date.getDate()+"/"+(date.getMonth()+1)+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()+"."+date.getMilliseconds()+
|
|
50
50
|
" - "+message.type
|
|
51
51
|
)
|
|
52
52
|
)
|
|
@@ -72,7 +72,7 @@ var UIMessages = React.createClass({displayName: "UIMessages",
|
|
|
72
72
|
React.createElement("button", {type: "button", className: "close", "data-dismiss": "modal", "aria-label": "Close"},
|
|
73
73
|
React.createElement("span", {"aria-hidden": "true"}, "×")
|
|
74
74
|
),
|
|
75
|
-
React.createElement("h4", {className: "modal-title", id: "modalLabel"}, "Message display"),
|
|
75
|
+
React.createElement("h4", {className: "modal-title", id: "modalLabel"}, "Message display for channel ", React.createElement("span", {className: "label label-default"}, messageModel.channel)),
|
|
76
76
|
React.createElement("svg", {style: {height: "40px", width: "100%"}, viewBox: "0 0 1000 40"},
|
|
77
77
|
React.createElement("text", {x: "50", y: "20", textAnchor: "middle", fill: "black"}, this.state.to),
|
|
78
78
|
React.createElement("text", {x: "950", y: "20", textAnchor: "middle", fill: "black"}, this.state.from),
|
|
File without changes
|
|
File without changes
|
|
@@ -46,7 +46,7 @@ var UIMessages = React.createClass({
|
|
|
46
46
|
<a data-toggle="collapse" data-parent="#accordion" href={"#collapse"+index} aria-expanded="true" aria-controls={"collapse"+index}>
|
|
47
47
|
<div className="panel-heading" role="tab" id="headingOne">
|
|
48
48
|
<h4 className="panel-title">
|
|
49
|
-
{date.
|
|
49
|
+
{date.getDate()+"/"+(date.getMonth()+1)+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()+"."+date.getMilliseconds()+
|
|
50
50
|
" - "+message.type}
|
|
51
51
|
</h4>
|
|
52
52
|
</div>
|
|
@@ -72,7 +72,7 @@ var UIMessages = React.createClass({
|
|
|
72
72
|
<button type="button" className="close" data-dismiss="modal" aria-label="Close">
|
|
73
73
|
<span aria-hidden="true">×</span>
|
|
74
74
|
</button>
|
|
75
|
-
<h4 className="modal-title" id="modalLabel">Message display</h4>
|
|
75
|
+
<h4 className="modal-title" id="modalLabel">Message display for channel <span className="label label-default">{messageModel.channel}</span></h4>
|
|
76
76
|
<svg style={{height: "40px", width: "100%"}} viewBox="0 0 1000 40">
|
|
77
77
|
<text x="50" y="20" textAnchor="middle" fill="black">{this.state.to}</text>
|
|
78
78
|
<text x="950" y="20" textAnchor="middle" fill="black">{this.state.from}</text>
|
data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js
CHANGED
|
File without changes
|
data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nutella_framework
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessandro Gnoli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: semantic
|
|
@@ -176,6 +176,20 @@ dependencies:
|
|
|
176
176
|
- - "~>"
|
|
177
177
|
- !ruby/object:Gem::Version
|
|
178
178
|
version: '1.0'
|
|
179
|
+
- !ruby/object:Gem::Dependency
|
|
180
|
+
name: bson
|
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
|
182
|
+
requirements:
|
|
183
|
+
- - "~>"
|
|
184
|
+
- !ruby/object:Gem::Version
|
|
185
|
+
version: '3.0'
|
|
186
|
+
type: :runtime
|
|
187
|
+
prerelease: false
|
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
189
|
+
requirements:
|
|
190
|
+
- - "~>"
|
|
191
|
+
- !ruby/object:Gem::Version
|
|
192
|
+
version: '3.0'
|
|
179
193
|
- !ruby/object:Gem::Dependency
|
|
180
194
|
name: shoulda
|
|
181
195
|
requirement: !ruby/object:Gem::Requirement
|