node-test-bed-adapter
Version:
An adapter to connect a node.js application to the Test-bed's Common Information Space or Common Simulation Space.
75 lines • 2.7 kB
JavaScript
/** The default key is either a string, or an EDXLDistribution message */
export const defaultKeySchema = [
'string',
{
type: 'record',
name: 'EDXLDistribution',
namespace: 'eu.driver.model.edxl',
doc: 'The required fields of an EDXL 2.0 Distribution Element',
fields: [
{
name: 'distributionID',
type: 'string',
doc: 'The unique identifier of this distribution message.',
},
{
name: 'senderID',
type: 'string',
doc: 'The unique identifier of the sender.',
},
{
name: 'dateTimeSent',
type: 'long',
doc: 'The date and time the distribution message was sent as the number of milliseconds from the unix epoch, 1 January 1970 00:00:00.000 UTC.',
logicalType: 'timestamp-millis',
},
{
name: 'dateTimeExpires',
type: 'long',
doc: 'The date and time the distribution message should expire as the number of milliseconds from the unix epoch, 1 January 1970 00:00:00.000 UTC.',
logicalType: 'timestamp-millis',
},
{
name: 'distributionStatus',
type: {
type: 'enum',
name: 'DistributionStatus',
symbols: [
'Actual',
'Exercise',
'System',
'Test',
'Unknown',
'NoAppropriateDefault',
],
},
doc: 'The action-ability of the message.',
},
{
name: 'distributionKind',
type: {
type: 'enum',
name: 'DistributionKind',
symbols: [
'Report',
'Update',
'Cancel',
'Request',
'Response',
'Dispatch',
'Ack',
'Error',
'SensorConfiguration',
'SensorControl',
'SensorStatus',
'SensorDetection',
'Unknown',
'NoAppropriateDefault',
],
},
doc: 'The function of the message.',
},
],
},
];
//# sourceMappingURL=default-key-schema.mjs.map