Stream Deployment File Format
The CAM Stream Deployment (CSD) data is mostly a serialized version of the Stream Configuration File Format which is easier to be consumed by cam-service.
Files should use the extension .csd
.
All multi-byte types are little-endian.
- About the Universally Unique Identifier (UUID) fields:
UUIDs are 16-byte long fields representing the 128-bit UUID in binary format
- The file format does not enforce any UUID variant. UUIDs are used as anopaque data value and does not process the sub-fields of the UUID.
Header Section
Field |
Size (in bytes) |
Description |
---|---|---|
Signature |
4 |
|
Format version |
2 |
|
Reserved |
2 |
Metadata Section
Field |
Size (in bytes) |
Description |
---|---|---|
16 |
Stream UUID |
|
Stream name |
64 |
64-byte string (including null-character) |
State Control Section
Field |
Size (in bytes) |
Description |
---|---|---|
Target timeout between init and start |
4 |
Unsigned integer, 0 indicates no timeout |
Target timeout between start and the first event |
4 |
Unsigned integer, cannot be zero |
Event Alarms Section
The remaining of the data is composed by one or more entries describing the event alarms.
Field |
Size (in bytes) |
Description |
---|---|---|
Timeout |
4 |
Unsigned integer |
Event identifier |
2 |
Unsigned integer |
Mode |
1 |
0x00 - Ondemand from arrival timestamp,0x01 - Ondemand from application timestamp,0x02 - Periodic |
Reserved |
1 |