summaryrefslogtreecommitdiffstats
path: root/test/monitoring
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-29 14:18:47 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-29 14:18:47 +0200
commit0959d003f6476eb3397049b5fc7f304988ec06c2 (patch)
tree41c78ede5bbed5fc2bf67764c5ce6f46db648622 /test/monitoring
parent7dfbf0230218f8bac9b37326421c24547d22bbd8 (diff)
hook+trace: adds hookid and type
The hookid is a unic identifier for a hook event. Its purpose is to distinguish events that could match different filters: a same event has a same id. Also integrate the field "type" (of the event) in the trace event. Change-Id: I90b0b2d3a0846b673b993110d2752cc54db75bd8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/monitoring')
-rw-r--r--test/monitoring/monitor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js
index ecf10962..e1d4be5b 100644
--- a/test/monitoring/monitor.js
+++ b/test/monitoring/monitor.js
@@ -429,7 +429,7 @@ function gotevent(obj) {
function gottraceevent(obj) {
var data = obj.data;
- var type = _.find(["request", "service", "daemon", "event"],function(x){return x in data;});
+ var type = data.type;
var desc = data[type];
if (!show_monitor_events) {
if (type == "event" ? desc.name.startsWith("monitor/") : desc.api == "monitor")