YAML event record type object
An event record type object is the type of an event record.
An event record type describes parts (specific context and payload fields) of what a CTF consumer needs to decode its instances (event records). The other parts (header and common context) are described by the data stream type which contains the event record type.
Event record type objects are only found under the
event-record-types
property of a data
stream type object.
barectf generates one tracing function per event record type.
Properties
All the properties are optional.
Name | Type | Description | Default |
---|---|---|---|
Positive integer or string |
Numeric log level of this event record type’s instances. If this property’s value is a string, it’s the name of an existing log level alias. |
No log level |
|
Structure field type object or string |
Specific context field type of this event record type. If this property’s value is a string, it must be the name of an existing field type alias. For each member Member names must be valid TSDL identifiers. |
No specific context field type |
|
Structure field type object or string |
Payload field type of this event record type. If this property’s value is a string, it must be the name of an existing field type alias. For each member Member names must be valid TSDL identifiers. |
No payload field type |
|
Sequence of strings. |
No inclusions |
Examples
payload-field-type:
class: structure
members:
- msg: string
log-level: 12
payload-field-type:
class: structure
members:
- msg: string
log-level: CRITICAL
payload-field-type:
class: structure
members:
- msg: string
specific-context-field-type:
class: structure
members:
- count:
field-type:
class: signed-integer
size: 32
payload-field-type:
class: structure
members:
- msg: string
payload-field-type:
class: structure
members:
- msg: string
- ip_addr:
field-type:
class: static-array
length: 4
element-field-type: uint8
$include: [net-ctx.yaml]