4 "description": "monitoring of bindings and internals",
7 "x-binding-c-generator": {
21 "url": "ws://{host}:{port}/api/monitor",
22 "description": "The API server.",
25 "default": "localhost"
33 "$ref": "#/components/schemas/afb-event"
41 "$ref": "#/components/schemas/afb-reply-v1"
44 "$ref": "#/components/schemas/afb-event-v1"
47 "title": "Generic response.",
49 "required": [ "jtype", "request" ],
57 "required": [ "status" ],
59 "status": { "type": "string" },
60 "info": { "type": "string" },
61 "token": { "type": "string" },
62 "uuid": { "type": "string" },
63 "reqid": { "type": "string" }
66 "response": { "type": "object" }
71 "required": [ "jtype", "event" ],
77 "event": { "type": "string" },
78 "data": { "type": "object" }
83 { "$ref": "#/components/schemas/verbosity-map" },
84 { "$ref": "#/components/schemas/verbosity-level" }
90 "verbosity": { "$ref": "#/components/schemas/get-verbosity" },
91 "apis": { "$ref": "#/components/schemas/get-apis" }
97 "verbosity": { "$ref": "#/components/schemas/verbosity-map" },
98 "apis": { "type": "object" }
103 { "type": "boolean" },
104 { "type": "array", "items": { "type": "string" } },
110 { "type": "boolean" },
111 { "type": "array", "items": { "type": "string" } },
117 "patternProperties": { "^.*$": { "$ref": "#/components/schemas/verbosity-level" } }
120 "enum": [ "debug", 3, "info", 2, "notice", "warning", 1, "error", 0 ]
124 { "type": "array", "items": { "$ref": "#/components/schemas/trace-add-object" } },
125 { "$ref": "#/components/schemas/trace-add-any" }
130 { "$ref": "#/components/schemas/trace-add-request" },
131 { "$ref": "#/components/schemas/trace-add-object" }
134 "trace-add-object": {
137 "name": { "type": "string", "description": "name of the generated event", "default": "trace" },
138 "tag": { "type": "string", "description": "tag for grouping traces", "default": "trace" },
139 "api": { "type": "string", "description": "api for requests, daemons and services" },
140 "verb": { "type": "string", "description": "verb for requests" },
141 "uuid": { "type": "string", "description": "uuid of session for requests" },
142 "pattern": { "type": "string", "description": "pattern for events" },
143 "request": { "$ref": "#/components/schemas/trace-add-request" },
144 "daemon": { "$ref": "#/components/schemas/trace-add-daemon" },
145 "service": { "$ref": "#/components/schemas/trace-add-service" },
146 "event": { "$ref": "#/components/schemas/trace-add-event" },
147 "session": { "$ref": "#/components/schemas/trace-add-session" },
148 "for": { "$ref": "#/components/schemas/trace-add" }
151 { "tag": "1", "for": [ "common", { "api": "xxx", "request": "*", "daemon": "*", "service": "*" } ] }
154 "trace-add-request": {
156 { "type": "array", "items": { "$ref": "#/components/schemas/trace-request-names" } },
157 { "$ref": "#/components/schemas/trace-request-names" }
160 "trace-request-names": {
161 "title": "name of traceable items of requests",
191 "subcallsync_result",
200 "trace-add-daemon": {
202 { "type": "array", "items": { "$ref": "#/components/schemas/trace-daemon-names" } },
203 { "$ref": "#/components/schemas/trace-daemon-names" }
206 "trace-daemon-names": {
207 "title": "name of traceable items of daemons",
212 "event_broadcast_after",
213 "event_broadcast_before",
221 "require_api_result",
223 "rootdir_open_locale",
228 "trace-add-service": {
230 { "type": "array", "items": { "$ref": "#/components/schemas/trace-service-names" } },
231 { "$ref": "#/components/schemas/trace-service-names" }
234 "trace-service-names": {
235 "title": "name of traceable items of services",
251 { "type": "array", "items": { "$ref": "#/components/schemas/trace-event-names" } },
252 { "$ref": "#/components/schemas/trace-event-names" }
255 "trace-event-names": {
256 "title": "name of traceable items of events",
271 "trace-add-session": {
273 { "type": "array", "items": { "$ref": "#/components/schemas/trace-session-names" } },
274 { "$ref": "#/components/schemas/trace-session-names" }
277 "trace-session-names": {
278 "title": "name of traceable items for sessions",
293 { "type": "boolean" },
297 "event": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] },
298 "tag": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] },
299 "uuid": { "anyOf": [ { "type": "string" }, { "type": "array", "items": "string" } ] }
307 "permission": "urn:AGL:permission:monitor:public:trace"
310 "permission": "urn:AGL:permission:monitor:public:set"
313 "permission": "urn:AGL:permission:monitor:public:get"
317 { "$ref": "#/components/x-permissions/get" },
318 { "$ref": "#/components/x-permissions/set" }
325 "description": "Get monitoring data.",
328 "$ref": "#/components/x-permissions/get-or-set"
335 "schema": { "$ref": "#/components/schemas/get-verbosity" }
341 "schema": { "$ref": "#/components/schemas/get-apis" }
346 "description": "A complex object array response",
348 "application/json": {
350 "$ref": "#/components/schemas/afb-reply"
359 "description": "Set monitoring actions.",
362 "$ref": "#/components/x-permissions/set"
369 "schema": { "$ref": "#/components/schemas/set-verbosity" }
374 "description": "A complex object array response",
376 "application/json": {
378 "$ref": "#/components/schemas/afb-reply"
387 "description": "Set monitoring actions.",
390 "$ref": "#/components/x-permissions/trace"
397 "schema": { "$ref": "#/components/schemas/trace-add" }
403 "schema": { "$ref": "#/components/schemas/trace-drop" }
408 "description": "A complex object array response",
410 "application/json": {
412 "$ref": "#/components/schemas/afb-reply"