From 0959d003f6476eb3397049b5fc7f304988ec06c2 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 29 Aug 2017 14:18:47 +0200 Subject: hook+trace: adds hookid and type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- test/monitoring/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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") -- cgit 1.2.3-korg