rotation-api: introduce rotation schedule descriptors
[lttng-tools.git] / src / common / mi-lttng-3.0.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2014 - Oliver Cotte <olivier.cotte@polymtl.ca>
4 - Jonathan Rajotte <jonathan.r.julien@gmail.com>
5 Copyright (c) 2016 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 -->
25 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
26 targetNamespace="https://lttng.org/xml/ns/lttng-mi"
27 xmlns:tns="https://lttng.org/xml/ns/lttng-mi"
28 elementFormDefault="qualified" version="3.0">
29
30 <!-- Maps to the uint32_t type -->
31 <xs:simpleType name="uint32_type">
32 <xs:restriction base="xs:integer">
33 <xs:minInclusive value="0" />
34 <xs:maxInclusive value="4294967295" />
35 </xs:restriction>
36 </xs:simpleType>
37
38 <!-- Maps to the uint64_t type -->
39 <xs:simpleType name="uint64_type">
40 <xs:restriction base="xs:integer">
41 <xs:minInclusive value="0" />
42 <xs:maxInclusive value="18446744073709551615" />
43 </xs:restriction>
44 </xs:simpleType>
45
46 <!--
47 Maps to the range allowed for blocking timeout: -1 (block
48 forever), 0 (do not block), positive integer value (blocking
49 time in usec) limited by its signed 32-bit representation when
50 converted to msec.
51 -->
52 <xs:simpleType name="blocking_timeout_type">
53 <xs:restriction base="xs:integer">
54 <xs:minInclusive value="-1" />
55 <xs:maxInclusive value="2147483648000" />
56 </xs:restriction>
57 </xs:simpleType>
58
59 <!-- Maps to the char name[LTTNG_SYMBOL_NAME_LEN] -->
60 <xs:simpleType name="name_type">
61 <xs:restriction base="xs:string">
62 <xs:maxLength value="255" />
63 </xs:restriction>
64 </xs:simpleType>
65
66 <!-- Maps to the lttng_event_type enum -->
67 <xs:simpleType name="event_type_type">
68 <xs:restriction base="xs:string">
69 <xs:enumeration value="ALL" />
70 <xs:enumeration value="TRACEPOINT" />
71 <xs:enumeration value="PROBE" />
72 <xs:enumeration value="FUNCTION" />
73 <xs:enumeration value="FUNCTION_ENTRY" />
74 <xs:enumeration value="NOOP" />
75 <xs:enumeration value="SYSCALL" />
76 </xs:restriction>
77 </xs:simpleType>
78
79 <!-- Maps to the lttng_event_field_type enum -->
80 <xs:simpleType name="event_field_type_type">
81 <xs:restriction base="xs:string">
82 <xs:enumeration value="OTHER" />
83 <xs:enumeration value="INTEGER" />
84 <xs:enumeration value="ENUM" />
85 <xs:enumeration value="FLOAT" />
86 <xs:enumeration value="STRING" />
87 </xs:restriction>
88 </xs:simpleType>
89
90 <!-- Maps to the lttng_loglevel_type enum -->
91 <xs:simpleType name="loglevel_type">
92 <xs:restriction base="xs:string">
93 <xs:enumeration value="ALL" />
94 <xs:enumeration value="RANGE" />
95 <xs:enumeration value="SINGLE" />
96 <xs:enumeration value="UNKNOWN" />
97 </xs:restriction>
98 </xs:simpleType>
99
100 <!-- Maps to the lttng_event_context_type enum -->
101 <xs:simpleType name="context_type_type">
102 <xs:restriction base="xs:string">
103 <xs:enumeration value="PID" />
104 <xs:enumeration value="PROCNAME" />
105 <xs:enumeration value="PRIO" />
106 <xs:enumeration value="NICE" />
107 <xs:enumeration value="VPID" />
108 <xs:enumeration value="TID" />
109 <xs:enumeration value="VTID" />
110 <xs:enumeration value="PPID" />
111 <xs:enumeration value="VPPID" />
112 <xs:enumeration value="PTHREAD_ID" />
113 <xs:enumeration value="HOSTNAME" />
114 <xs:enumeration value="IP" />
115 <xs:enumeration value="INTERRUPTIBLE" />
116 <xs:enumeration value="PREEMPTIBLE" />
117 <xs:enumeration value="NEED_RESCHEDULE" />
118 <xs:enumeration value="MIGRATABLE" />
119 <xs:enumeration value="CALLSTACK_USER" />
120 <xs:enumeration value="CALLSTACK_KERNEL" />
121 </xs:restriction>
122 </xs:simpleType>
123
124 <!-- Maps to loglevel_string char * -->
125 <xs:simpleType name="loglevel_string_type">
126 <xs:restriction base="xs:string">
127 <xs:enumeration value="" />
128 <xs:enumeration value="TRACE_EMERG" />
129 <xs:enumeration value="TRACE_ALERT" />
130 <xs:enumeration value="TRACE_CRIT" />
131 <xs:enumeration value="TRACE_ERR" />
132 <xs:enumeration value="TRACE_WARNING" />
133 <xs:enumeration value="TRACE_NOTICE" />
134 <xs:enumeration value="TRACE_INFO" />
135 <xs:enumeration value="TRACE_DEBUG_SYSTEM" />
136 <xs:enumeration value="TRACE_DEBUG_PROGRAM" />
137 <xs:enumeration value="TRACE_DEBUG_PROCESS" />
138 <xs:enumeration value="TRACE_DEBUG_MODULE" />
139 <xs:enumeration value="TRACE_DEBUG_UNIT" />
140 <xs:enumeration value="TRACE_DEBUG_FUNCTION" />
141 <xs:enumeration value="TRACE_DEBUG_LINE" />
142 <xs:enumeration value="TRACE_DEBUG" />
143 <xs:enumeration value="JUL_OFF" />
144 <xs:enumeration value="JUL_SEVERE" />
145 <xs:enumeration value="JUL_WARNING" />
146 <xs:enumeration value="JUL_INFO" />
147 <xs:enumeration value="JUL_CONFIG" />
148 <xs:enumeration value="JUL_FINE" />
149 <xs:enumeration value="JUL_FINER" />
150 <xs:enumeration value="JUL_FINEST" />
151 <xs:enumeration value="JUL_ALL" />
152 <xs:enumeration value="LOG4J_OFF" />
153 <xs:enumeration value="LOG4J_FATAL" />
154 <xs:enumeration value="LOG4J_ERROR" />
155 <xs:enumeration value="LOG4J_WARN" />
156 <xs:enumeration value="LOG4J_INFO" />
157 <xs:enumeration value="LOG4J_DEBUG" />
158 <xs:enumeration value="LOG4J_TRACE" />
159 <xs:enumeration value="LOG4J_ALL" />
160 <xs:enumeration value="PYTHON_CRITICAL" />
161 <xs:enumeration value="PYTHON_ERROR" />
162 <xs:enumeration value="PYTHON_WARNING" />
163 <xs:enumeration value="PYTHON_INFO" />
164 <xs:enumeration value="PYTHON_DEBUG" />
165 <xs:enumeration value="PYTHON_NOTSET" />
166 <xs:enumeration value="UNKNOWN" />
167 </xs:restriction>
168 </xs:simpleType>
169
170 <!-- Maps to the lttng_calibrate_type enum -->
171 <xs:simpleType name="calibrate_type_type">
172 <xs:restriction base="xs:string">
173 <xs:enumeration value="FUNCTION" />
174 </xs:restriction>
175 </xs:simpleType>
176
177 <!-- Maps to the lttng_event_probe_attr struct -->
178 <xs:complexType name="event_probe_attributes_type">
179 <xs:all>
180 <xs:element name="address" type="tns:uint64_type" minOccurs="0" />
181 <xs:element name="offset" type="tns:uint64_type" minOccurs="0" />
182 <xs:element name="symbol_name" type="tns:name_type" minOccurs="0" />
183 </xs:all>
184 </xs:complexType>
185
186 <!-- Maps to the lttng_event_function_attr struct -->
187 <xs:complexType name="event_ftrace_attributes_type">
188 <xs:all>
189 <xs:element name="symbol_name" type="tns:name_type" />
190 </xs:all>
191 </xs:complexType>
192
193 <!-- Maps to per event type configuration -->
194 <xs:complexType name="event_attributes_type">
195 <xs:choice>
196 <xs:element name="probe_attributes" type="tns:event_probe_attributes_type" />
197 <xs:element name="function_attributes" type="tns:event_ftrace_attributes_type" />
198 </xs:choice>
199 </xs:complexType>
200
201 <!-- Maps to exclusion type -->
202 <xs:complexType name="event_exclusion_list_type">
203 <xs:sequence>
204 <xs:element name="exclusion" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
205 </xs:sequence>
206 </xs:complexType>
207
208 <!-- Maps to lttng_event struct -->
209 <xs:complexType name="event_type">
210 <xs:all>
211 <xs:element name="type" type="tns:event_type_type" default="TRACEPOINT" minOccurs="0" />
212 <xs:element name="name" type="tns:name_type" minOccurs="0" />
213 <xs:element name="loglevel_type" type="tns:loglevel_type" default="ALL" minOccurs="0" />
214 <xs:element name="loglevel" type="tns:loglevel_string_type" default="" minOccurs="0" />
215 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
216 <xs:element name="filter_expression" type="xs:string" minOccurs="0" />
217 <xs:element name="exclusions" type="tns:event_exclusion_list_type" minOccurs="0"/>
218 <xs:element name="attributes" type="tns:event_attributes_type" minOccurs="0" />
219 <xs:element name="event_fields" type="tns:event_fields_type" minOccurs="0" />
220 <xs:element name="success" type="xs:boolean" minOccurs="0" />
221 </xs:all>
222 </xs:complexType>
223
224 <!-- Maps to mi_lttng_version struct -->
225 <xs:complexType name="version_type">
226 <xs:all>
227 <xs:element name="name" type="tns:name_type" />
228 <xs:element name="string" type="tns:name_type" />
229 <xs:element name="major" type="tns:uint32_type" />
230 <xs:element name="url" type="xs:string" />
231 <xs:element name="minor" type="tns:uint32_type" />
232 <xs:element name="commit" type="xs:string" />
233 <xs:element name="license" type="xs:string" />
234 <xs:element name="patchLevel" type="tns:uint32_type" />
235 <xs:element name="description" type="xs:string" />
236 </xs:all>
237 </xs:complexType>
238
239 <!-- Maps to an array of event -->
240 <xs:complexType name="event_list_type">
241 <xs:sequence>
242 <xs:element name="event" type="tns:event_type" minOccurs="0" maxOccurs="unbounded" />
243 </xs:sequence>
244 </xs:complexType>
245
246 <!-- Maps to the lttng_domain_type enum -->
247 <xs:simpleType name="domain_type_type">
248 <xs:restriction base="xs:string">
249 <xs:enumeration value="KERNEL"/>
250 <xs:enumeration value="UST"/>
251 <xs:enumeration value="JUL"/>
252 <xs:enumeration value="LOG4J"/>
253 <xs:enumeration value="PYTHON"/>
254 </xs:restriction>
255 </xs:simpleType>
256
257 <!-- Maps to the lttng_buffer_type enum -->
258 <xs:simpleType name="domain_buffer_type">
259 <xs:restriction base="xs:string">
260 <xs:enumeration value="PER_PID"/>
261 <xs:enumeration value="PER_UID"/>
262 <xs:enumeration value="GLOBAL"/>
263 </xs:restriction>
264 </xs:simpleType>
265
266 <!-- Maps to the type mode of a channel -->
267 <xs:simpleType name="channel_overwrite_mode_type">
268 <xs:restriction base="xs:string">
269 <xs:enumeration value="DISCARD" />
270 <xs:enumeration value="OVERWRITE" />
271 </xs:restriction>
272 </xs:simpleType>
273
274 <!-- Maps to the lttng_event_output enum -->
275 <xs:simpleType name="event_output_type">
276 <xs:restriction base="xs:string">
277 <xs:enumeration value="SPLICE" />
278 <xs:enumeration value="MMAP" />
279 </xs:restriction>
280 </xs:simpleType>
281
282 <!-- map to a pid -->
283 <xs:complexType name="pid_type">
284 <xs:all>
285 <xs:element name="id" type="xs:int" />
286 <xs:element name="name" type="tns:name_type" />
287 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
288 </xs:all>
289 </xs:complexType>
290
291 <!-- maps to an array of pid -->
292 <xs:complexType name="pids_type">
293 <xs:sequence>
294 <xs:element name="pid" type="tns:pid_type" minOccurs="0" maxOccurs="unbounded" />
295 </xs:sequence>
296 </xs:complexType>
297
298 <xs:simpleType name="pidbyint">
299 <xs:restriction base="xs:integer">
300 <xs:minInclusive value="0"/>
301 <xs:maxInclusive value="4294967295" />
302 </xs:restriction>
303 </xs:simpleType>
304
305 <xs:simpleType name="pidwildcard">
306 <xs:restriction base="xs:string">
307 <xs:enumeration value="*"/>
308 </xs:restriction>
309 </xs:simpleType>
310
311 <xs:complexType name="pid_target_type">
312 <xs:all>
313 <xs:element name="pid">
314 <xs:simpleType>
315 <xs:union memberTypes="tns:pidbyint tns:pidwildcard" />
316 </xs:simpleType>
317 </xs:element>
318 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
319 </xs:all>
320 </xs:complexType>
321
322 <!-- Maps to a list of pid_targets-->
323 <xs:complexType name="targets_type">
324 <xs:sequence>
325 <xs:choice>
326 <xs:element name="pid_target" type="tns:pid_target_type" minOccurs="0" maxOccurs="unbounded"/>
327 </xs:choice>
328 </xs:sequence>
329 </xs:complexType>
330
331 <!-- Maps to a pid_tracker-->
332 <xs:complexType name="pid_tracker_type">
333 <xs:all>
334 <xs:element name="targets" type="tns:targets_type" />
335 </xs:all>
336 </xs:complexType>
337
338 <!-- Maps to a list of trackers-->
339 <xs:complexType name="trackers_type">
340 <xs:sequence minOccurs="0" maxOccurs="unbounded">
341 <xs:element name="pid_tracker" type="tns:pid_tracker_type" maxOccurs="1" />
342 </xs:sequence>
343 </xs:complexType>
344
345 <!-- Maps to struct lttng_domain and contains channels -->
346 <xs:complexType name="domain_type">
347 <xs:all>
348 <xs:element name="type" type="tns:domain_type_type" />
349 <xs:element name="buffer_type" type="tns:domain_buffer_type" />
350 <xs:element name="pids" type="tns:pids_type" minOccurs="0" />
351 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
352 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
353 <xs:element name="trackers" type="tns:trackers_type" minOccurs="0" />
354 </xs:all>
355 </xs:complexType>
356
357 <!-- Maps to struct lttng_channel -->
358 <xs:complexType name="channel_type">
359 <xs:all>
360 <xs:element name="name" type="tns:name_type" />
361 <xs:element name="enabled" type="xs:boolean" default="true" minOccurs="0" />
362 <xs:element name="attributes" type="tns:channel_attributes_type" minOccurs="0" />
363 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
364 <xs:element name="success" type="xs:boolean" default="false" minOccurs="0" />
365 </xs:all>
366 </xs:complexType>
367
368 <!-- Maps to struct lttng_channel_attr -->
369 <xs:complexType name="channel_attributes_type">
370 <xs:all>
371 <xs:element name="overwrite_mode" type="tns:channel_overwrite_mode_type" default="DISCARD" minOccurs="0" />
372 <xs:element name="subbuffer_size" type="tns:uint64_type" minOccurs="0" /> <!-- bytes -->
373 <xs:element name="subbuffer_count" type="tns:uint64_type" default="4" minOccurs="0" />
374 <xs:element name="switch_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
375 <xs:element name="read_timer_interval" type="tns:uint32_type" /> <!-- usec -->
376 <xs:element name="output_type" type="tns:event_output_type" />
377 <xs:element name="tracefile_size" type="tns:uint64_type" default="0" minOccurs="0" /> <!-- bytes -->
378 <xs:element name="tracefile_count" type="tns:uint64_type" default="0" minOccurs="0" />
379 <xs:element name="live_timer_interval" type="tns:uint32_type" default="0" minOccurs="0" /> <!-- usec -->
380 <xs:element name="discarded_events" type="tns:uint64_type" default="0" minOccurs="0" />
381 <xs:element name="lost_packets" type="tns:uint64_type" default="0" minOccurs="0" />
382 <xs:element name="monitor_timer_interval" type="tns:uint64_type" default="0" minOccurs="0" />
383 <xs:element name="blocking_timeout" type="tns:blocking_timeout_type" default="0" minOccurs="0" />
384 </xs:all>
385 </xs:complexType>
386
387 <!-- Maps to struct lttng_snapshot_output -->
388 <xs:complexType name="snapshot_type">
389 <xs:all>
390 <xs:element name="id" type="tns:uint32_type" minOccurs="0" />
391 <xs:element name="max_size" type="tns:uint64_type" minOccurs="0" />
392 <xs:element name="name" type="tns:name_type" minOccurs="0" />
393 <xs:element name="session_name" type="tns:name_type" minOccurs="0" />
394 <xs:element name="ctrl_url" type="xs:string" minOccurs="0" />
395 <xs:element name="data_url" type="xs:string" minOccurs="0" />
396 </xs:all>
397 </xs:complexType>
398
399 <xs:complexType name="snapshots_type">
400 <xs:sequence>
401 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" maxOccurs="unbounded" />
402 </xs:sequence>
403 </xs:complexType>
404
405 <xs:complexType name="periodic_rotation_schedule_type">
406 <xs:all>
407 <xs:element name="time_us" type="tns:uint64_type" minOccurs="0" />
408 </xs:all>
409 </xs:complexType>
410
411 <xs:complexType name="size_threshold_rotation_schedule_type">
412 <xs:all>
413 <xs:element name="bytes" type="tns:uint64_type" minOccurs="0" />
414 </xs:all>
415 </xs:complexType>
416
417 <xs:complexType name="rotation_schedule_type">
418 <xs:sequence>
419 <xs:choice maxOccurs="unbounded">
420 <xs:element name="periodic" type="tns:periodic_rotation_schedule_type" maxOccurs="unbounded" />
421 <xs:element name="size_threshold" type="tns:size_threshold_rotation_schedule_type" maxOccurs="unbounded" />
422 </xs:choice>
423 </xs:sequence>
424 </xs:complexType>
425
426 <xs:complexType name="channels_type">
427 <xs:sequence>
428 <xs:element name="channel" type="tns:channel_type" minOccurs="0" maxOccurs="unbounded" />
429 </xs:sequence>
430 </xs:complexType>
431
432 <!-- Maps to a lttng_session -->
433 <xs:complexType name="session_type">
434 <xs:all>
435 <xs:element name="name" type="tns:name_type" />
436 <xs:element name="path" type="xs:string" minOccurs="0" />
437 <xs:element name="enabled" type="xs:boolean" default="false" minOccurs="0" />
438 <xs:element name="snapshot_mode" type="tns:uint32_type" minOccurs="0" />
439 <xs:element name="live_timer_interval" type="tns:uint32_type" minOccurs="0" />
440 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
441 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
442 <xs:element name="snapshots" type="tns:snapshots_type" minOccurs="0" />
443 <xs:element name="rotation_schedules" type="tns:rotation_schedule_type" minOccurs="0" />
444 </xs:all>
445 </xs:complexType>
446
447 <!-- Maps to a lttng_event_field -->
448 <xs:complexType name="event_field_type">
449 <xs:all>
450 <xs:element name="name" type="tns:name_type" />
451 <xs:element name="type" type="tns:event_field_type_type" />
452 <xs:element name="nowrite" type="xs:int" />
453 </xs:all>
454 </xs:complexType>
455
456 <!-- Maps to the save command -->
457 <xs:complexType name="save_type">
458 <xs:all>
459 <xs:element name="session" type="tns:session_type" />
460 <xs:element name="path" type="xs:string" />
461 </xs:all>
462 </xs:complexType>
463
464 <!-- Maps to the load command -->
465 <xs:complexType name="load_type">
466 <xs:all>
467 <xs:element name="session" type="tns:session_type" />
468 <xs:element name="path" type="xs:string" />
469 <xs:element name="overrides" type="tns:overrides_type" />
470 </xs:all>
471 </xs:complexType>
472
473 <!-- Maps to the override parameters of the load command -->
474 <xs:complexType name="overrides_type">
475 <xs:all>
476 <xs:element name="name" type="tns:name_type" minOccurs="0" />
477 <xs:element name="url" type="xs:string" minOccurs="0" />
478 </xs:all>
479 </xs:complexType>
480
481 <!-- Maps to struct lttng_calibrate -->
482 <xs:complexType name="calibrate_type">
483 <xs:all>
484 <xs:element name="type" type="tns:calibrate_type_type" />
485 </xs:all>
486 </xs:complexType>
487
488 <!-- Maps to lttng_event_perf_counter_ctx -->
489 <xs:complexType name="perf_counter_context_type">
490 <xs:all>
491 <xs:element name="type" type="tns:uint32_type" />
492 <xs:element name="config" type="tns:uint64_type" />
493 <xs:element name="name" type="tns:name_type" />
494 </xs:all>
495 </xs:complexType>
496
497 <!-- Maps to app_ctx -->
498 <xs:complexType name="app_context_type">
499 <xs:all>
500 <xs:element name="provider_name" type="xs:string"/>
501 <xs:element name="ctx_name" type="xs:string"/>
502 </xs:all>
503 </xs:complexType>
504
505 <!-- Maps to lttng_event_context -->
506 <xs:complexType name="context_type">
507 <xs:sequence>
508 <xs:choice>
509 <xs:element name="type" type="tns:context_type_type"/>
510 <xs:element name="perf" type="tns:perf_counter_context_type"/>
511 <xs:element name="app" type="tns:app_context_type"/>
512 </xs:choice>
513 <xs:element name="symbol" type="xs:string" minOccurs="0" />
514 </xs:sequence>
515 </xs:complexType>
516
517 <!-- Maps to an array of domain -->
518 <xs:complexType name="domains_type">
519 <xs:sequence>
520 <xs:element name="domain" type="tns:domain_type" minOccurs="0" maxOccurs="unbounded" />
521 </xs:sequence>
522 </xs:complexType>
523
524 <!-- Maps to an array of session -->
525 <xs:complexType name="sessions_type">
526 <xs:sequence>
527 <xs:element name="session" type="tns:session_type" minOccurs="0" maxOccurs="unbounded" />
528 </xs:sequence>
529 </xs:complexType>
530
531 <!-- Maps to an array of event_field -->
532 <xs:complexType name="event_fields_type">
533 <xs:sequence>
534 <xs:element name="event_field" type="tns:event_field_type" minOccurs="0" maxOccurs="unbounded" />
535 </xs:sequence>
536 </xs:complexType>
537
538 <!-- Maps to an array of context -->
539 <xs:complexType name="contexts_type">
540 <xs:sequence>
541 <xs:element name="context" type="tns:context_type" minOccurs="0" maxOccurs="unbounded" />
542 </xs:sequence>
543 </xs:complexType>
544
545 <!-- Maps to an action during snapshot command -->
546 <xs:complexType name="snapshot_cmd_type">
547 <xs:sequence>
548 <xs:element name="name" type="tns:snapshot_action_type" minOccurs="0" />
549 <xs:element name="output" type="tns:output_type" minOccurs="0" />
550 </xs:sequence>
551 </xs:complexType>
552
553 <!-- Type of snapshot commands -->
554 <xs:simpleType name="snapshot_action_type">
555 <xs:restriction base="xs:string">
556 <xs:enumeration value="list-output" />
557 <xs:enumeration value="del-output" />
558 <xs:enumeration value="add-output" />
559 <xs:enumeration value="record-output" />
560 </xs:restriction>
561 </xs:simpleType>
562
563 <!-- Maps to an action during metadata command -->
564 <xs:complexType name="metadata_cmd_type">
565 <xs:sequence>
566 <xs:element name="name" type="tns:metadata_action_type" minOccurs="0" />
567 </xs:sequence>
568 </xs:complexType>
569
570 <!-- Type of metadata commands -->
571 <xs:simpleType name="metadata_action_type">
572 <xs:restriction base="xs:string">
573 <xs:enumeration value="regenerate" />
574 </xs:restriction>
575 </xs:simpleType>
576
577 <!-- Type of regenerate commands -->
578 <xs:simpleType name="regenerate_action_type">
579 <xs:restriction base="xs:string">
580 <xs:enumeration value="metadata" />
581 <xs:enumeration value="statedump" />
582 </xs:restriction>
583 </xs:simpleType>
584
585 <!-- Type of regenerate command -->
586 <xs:complexType name="regenerate_cmd_type">
587 <xs:sequence>
588 <xs:element name="name" type="tns:regenerate_action_type" minOccurs="0" />
589 </xs:sequence>
590 </xs:complexType>
591
592 <!-- Maps to the rotate command -->
593 <xs:complexType name="rotation_type">
594 <xs:all>
595 <xs:element name="status" type="xs:string" />
596 <xs:element name="path" type="xs:string" minOccurs="0" />
597 </xs:all>
598 </xs:complexType>
599
600 <xs:complexType name="rotation_schedule_result_type">
601 <xs:sequence>
602 <xs:element name="rotation_schedule" type="tns:rotation_schedule_type" minOccurs="1" />
603 <xs:element name="success" type="xs:boolean" minOccurs="1"/>
604 </xs:sequence>
605 </xs:complexType>
606
607 <!-- Maps to the enable/disable-rotation commands -->
608 <xs:complexType name="rotation_schedule_cmd_type">
609 <xs:sequence>
610 <xs:element name="session_name" type="tns:name_type" minOccurs="1" />
611 <xs:element name="rotation_schedule_result" type="tns:rotation_schedule_result_type" minOccurs="1" maxOccurs="unbounded" />
612 </xs:sequence>
613 </xs:complexType>
614
615 <xs:complexType name="output_type">
616 <xs:choice>
617 <xs:element name="domains" type="tns:domains_type" minOccurs="0" />
618 <xs:element name="sessions" type="tns:sessions_type" minOccurs="0" />
619 <xs:element name="session" type="tns:session_type" minOccurs="0" />
620 <xs:element name="snapshot_action" type="tns:snapshot_cmd_type" minOccurs="0" />
621 <xs:element name="snapshot" type="tns:snapshot_type" minOccurs="0" />
622 <xs:element name="version" type="tns:version_type" minOccurs="0" />
623 <xs:element name="save" type="tns:save_type" minOccurs="0" />
624 <xs:element name="load" type="tns:load_type" minOccurs="0" />
625 <xs:element name="calibrate" type="tns:calibrate_type" minOccurs="0" />
626 <xs:element name="contexts" type="tns:contexts_type" minOccurs="0" />
627 <xs:element name="channels" type="tns:channels_type" minOccurs="0" />
628 <xs:element name="events" type="tns:event_list_type" minOccurs="0" />
629 <xs:element name="channel" type="tns:channel_type" minOccurs="0" />
630 <xs:element name="targets" type="tns:targets_type" minOccurs="0" />
631 <xs:element name="metadata_action" type="tns:metadata_cmd_type" minOccurs="0" />
632 <xs:element name="regenerate_action" type="tns:regenerate_cmd_type" minOccurs="0" />
633 <xs:element name="rotation" type="tns:rotation_type" minOccurs="0" />
634 <xs:element name="rotation_schedule_results" type="tns:rotation_schedule_cmd_type" minOccurs="0" />
635 </xs:choice>
636 </xs:complexType>
637
638 <!-- Maps to the mi_lttng commands -->
639 <xs:simpleType name="command_string_type">
640 <xs:restriction base="xs:string">
641 <xs:enumeration value="create" />
642 <xs:enumeration value="list" />
643 <xs:enumeration value="snapshot" />
644 <xs:enumeration value="version" />
645 <xs:enumeration value="save" />
646 <xs:enumeration value="load" />
647 <xs:enumeration value="start" />
648 <xs:enumeration value="stop" />
649 <xs:enumeration value="destroy" />
650 <xs:enumeration value="calibrate" />
651 <xs:enumeration value="add-context" />
652 <xs:enumeration value="enable-channel" />
653 <xs:enumeration value="enable-event" />
654 <xs:enumeration value="set-session" />
655 <xs:enumeration value="disable-event" />
656 <xs:enumeration value="disable-channel" />
657 <xs:enumeration value="track" />
658 <xs:enumeration value="untrack" />
659 <xs:enumeration value="metadata" />
660 <xs:enumeration value="regenerate" />
661 <xs:enumeration value="rotate" />
662 <xs:enumeration value="enable-rotation" />
663 <xs:enumeration value="disable-rotation" />
664 </xs:restriction>
665 </xs:simpleType>
666
667 <xs:element name="command">
668 <xs:complexType>
669 <xs:all>
670 <xs:element name="name" type="tns:command_string_type" maxOccurs="1" />
671 <xs:element name="output" type="tns:output_type" maxOccurs="1" />
672 <xs:element name="success" type="xs:boolean" minOccurs="0" maxOccurs="1" />
673 </xs:all>
674 <xs:attribute name="schemaVersion" type="xs:string" use="required"/>
675 </xs:complexType>
676 </xs:element>
677 </xs:schema>
This page took 0.044677 seconds and 5 git commands to generate.