1 # The MIT License (MIT)
3 # Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
5 # Permission is hereby granted, free of charge, to any person obtaining
6 # a copy of this software and associated documentation files (the
7 # "Software"), to deal in the Software without restriction, including
8 # without limitation the rights to use, copy, modify, merge, publish,
9 # distribute, sublicense, and/or sell copies of the Software, and to
10 # permit persons to whom the Software is furnished to do so, subject to
11 # the following conditions:
13 # The above copyright notice and this permission notice shall be
14 # included in all copies or substantial portions of the Software.
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 $schema: http://json-schema.org/draft-07/schema#
25 $id: https://barectf.org/schemas/2/config/config.json
26 title: Effective configuration object
32 $ref: https://barectf.org/schemas/2/config/field-type.json#/definitions/struct-ft
37 - $ref: https://barectf.org/schemas/2/config/field-type.json#/definitions/int-ft
43 - $ref: '#/definitions/uint-ft'
49 packet-header-ft-prop:
51 - $ref: '#/definitions/opt-struct-ft'
63 - $ref: '#/definitions/uint-ft'
69 - $ref: https://barectf.org/schemas/2/config/field-type.json#/definitions/static-array-ft
75 - $ref: https://barectf.org/schemas/2/config/field-type.json#/definitions/int-ft
88 $ref: '#/definitions/uint-ft'
90 $ref: '#/definitions/uint-ft'
92 title: Trace type object
96 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/byte-order-prop
98 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-trace-type-uuid-prop
100 $ref: '#/definitions/packet-header-ft-prop'
103 additionalProperties: false
105 title: Clock type object
121 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-uuid-prop
123 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
125 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-int-min-1
127 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-int-min-0
129 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-clock-type-offset-prop
131 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-bool
133 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
135 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
136 additionalProperties: false
141 pattern: '^[A-Za-z_][A-Za-z0-9_]*$'
144 packet-context-ft-prop:
146 - $ref: https://barectf.org/schemas/2/config/field-type.json#/definitions/struct-ft
151 $ref: '#/definitions/uint-ft'
153 $ref: '#/definitions/uint-ft'
155 $ref: '#/definitions/uint-ft'
157 $ref: '#/definitions/uint-ft'
159 $ref: '#/definitions/uint-ft-ts'
161 $ref: '#/definitions/uint-ft-ts'
172 event-header-ft-prop:
174 - $ref: '#/definitions/opt-struct-ft'
185 $ref: '#/definitions/uint-ft'
187 $ref: '#/definitions/uint-ft-ts'
189 title: Stream type object
193 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-bool
195 $ref: '#/definitions/packet-context-ft-prop'
197 $ref: '#/definitions/event-header-ft-prop'
199 $ref: '#/definitions/opt-struct-ft'
201 title: Event types object
204 '^[A-Za-z_][A-Za-z0-9_]*$':
205 $ref: '#/definitions/event-type'
206 additionalProperties: false
209 - packet-context-type
211 additionalProperties: false
213 title: Event type object
226 $ref: '#/definitions/opt-struct-ft'
228 $ref: '#/definitions/opt-struct-ft'
229 additionalProperties: false
239 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/config-prefix-prop
241 title: Configuration options object
246 gen-default-stream-def:
248 additionalProperties: false
250 title: Metadata object
266 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-log-level-aliases-prop
268 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-log-level-aliases-prop
270 $ref: '#/definitions/trace-type'
272 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-env-prop
274 title: Clock types object
277 '^[A-Za-z_][A-Za-z0-9_]*$':
278 $ref: '#/definitions/clock-type'
279 additionalProperties: false
281 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
283 title: Stream types object
286 '^[A-Za-z_][A-Za-z0-9_]*$':
287 $ref: '#/definitions/stream-type'
288 additionalProperties: false
293 additionalProperties: false
297 additionalProperties: false