summaryrefslogtreecommitdiffstats
path: root/src/devtools
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-02-12 15:57:55 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-02-13 09:20:24 +0100
commitfb678ae817f739d9c7208f9165f6c04b2028af26 (patch)
tree489145fd3af4a1fa7b5a65242a713725ba78da92 /src/devtools
parent5fccb2dcb97fac7fbc16d66e947477e41d30a2b4 (diff)
afb-trace: Add tracing of sessions
Change-Id: Ieba4032bed526ca158dc69558177a038df95988b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/devtools')
-rw-r--r--src/devtools/monitor-api.json25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/devtools/monitor-api.json b/src/devtools/monitor-api.json
index 8361d572..81d1028a 100644
--- a/src/devtools/monitor-api.json
+++ b/src/devtools/monitor-api.json
@@ -138,12 +138,13 @@
"tag": { "type": "string", "description": "tag for grouping traces", "default": "trace" },
"api": { "type": "string", "description": "api for requests, daemons and services" },
"verb": { "type": "string", "description": "verb for requests" },
- "session": { "type": "string", "description": "session for requests" },
+ "uuid": { "type": "string", "description": "uuid of session for requests" },
"pattern": { "type": "string", "description": "pattern for events" },
"request": { "$ref": "#/components/schemas/trace-add-request" },
"daemon": { "$ref": "#/components/schemas/trace-add-daemon" },
"service": { "$ref": "#/components/schemas/trace-add-service" },
"event": { "$ref": "#/components/schemas/trace-add-event" },
+ "session": { "$ref": "#/components/schemas/trace-add-session" },
"for": { "$ref": "#/components/schemas/trace-add" }
},
"examples": [
@@ -267,6 +268,26 @@
"push_before"
]
},
+ "trace-add-session": {
+ "anyOf": [
+ { "type": "array", "items": { "$ref": "#/components/schemas/trace-session-names" } },
+ { "$ref": "#/components/schemas/trace-session-names" }
+ ]
+ },
+ "trace-session-names": {
+ "title": "name of traceable items for sessions",
+ "enum": [
+ "*",
+ "addref",
+ "all",
+ "close",
+ "common",
+ "create",
+ "destroy",
+ "renew",
+ "unref"
+ ]
+ },
"trace-drop": {
"anyOf": [
{ "type": "boolean" },
@@ -275,7 +296,7 @@
"properties": {
"event": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] },
"tag": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] },
- "session": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] }
+ "uuid": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] }
}
}
]