activityContextEvent.updated
This event is raised each time an activity context event item is updated
Supported events:
- newDriverOperational: the driver that links with the asset, is different from the previous linked driver for that asset
- sameDriverOperational: the driver that links with the asset, is the same driver as was previously linked with the asset
- driverNotOperational: the driver is signed out or unlinked from the asset.
- ptoOnCan / ptoOffCan
- ignitionOff / ignitionOn
- engineRunning / engineStopped
- digitalInput1Active / digitalInput1Inactive (support for Input1 up to Input2)
- input1ActiveExtensionKit1 / input1InactiveExtensionKit1 (support for input1 up to input3)
- input1ActiveExtensionKit2 / input1InactiveExtensionKit2 (support for input1)
Payload JSON
{
"eventId": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"eventTime": "2025-05-12T22:21:00.000Z",
"eventOrganizationId": "7e2c1a8b-1f2b-4c3d-9e8a-2b7c1a8b1f2b",
"subscriptions": [
{
"eventSubscriptionIds": "a1c2e3f-4b5d-6e7f-8a9b-0c1d2e3f4a5b",
"eventsMeta": [
{
"eventName": "activityContextEvent.updated",
"count": 1
}
],
"eventsData": [
{
"eventType": "activityCcontextEvent.updated",
"eventVersion": 1,
"eventData": {
"assetId": "1a8b2f3d-3c2b-4e7a-9c1d-8b2f3d1a8b2f",
"driverId": "2b3c1a8b-2f3d-4e7a-9c1d-8b2f3d1a8b2f",
"activityContextEventId": "3c2b1a8b-2f3d-4e7a-9c1d-8b2f3d1a8b2f",
"activityContextEventType": "ignitionOff",
"activityContextEventDefinitionId": "4e7a9c1d-2b3c-4f2d-8a7c-1a8b2f3d3c2b",
"workflowSessionId": "8a7c1a8b-2f3d-4c2b-9e7a-3c2b1a8b2f3d",
"position": {
"latitude": 50.869,
"longitude": 2.8942
},
"mileage": 123456.7,
"modifiedOn": "2025-05-12T22:20:00.000Z",
"registeredOn": "2025-05-12T22:20:00.000Z"
}
}
]
}
]
}Field level description
| Field | Type | Required | Description |
|---|---|---|---|
| eventId | string (uuid) | Optional | Unique identifier generated by the core module for this Kafka message |
| eventTime | string (date-time) | Optional | Time at which the event was sent to Kafka |
| eventOrganizationId | string (uuid) | Optional | Identifier of the organization to which the data belongs |
| subscriptions | array | Required | List of subscriptions receiving this event |
| subscriptions[].eventSubscriptionIds | array (uuid) | Required | Subscription IDs for which the same event data applies |
| subscriptions[].eventsMeta | array | Required | Metadata describing included events |
| subscriptions[].eventsData | array | Required | Actual event payloads |
| eventName | string | Required | Name of the event (activityContextEvent.updated) |
| count | integer | Required | Number of occurrences of this event in eventsData |
| eventType | string | Required | Event type identifier (activityContextEvent.updated) |
| eventVersion | integer | Required | Version of the event (v1) |
| eventData | object | Required | Activity Context Event creation payload |
| assetId | string (uuid) | Required | Unique identifier of the asset |
| driverId | string (uuid) | Optional | Identifier of the driver |
| activityContextEventId | string (uuid) | Required | Unique identifier of the activity context event |
| activityContextEventType | string | Required | Type of context event (e.g. newDriverOperational, engineRunning) |
| activityContextEventDefinitionId | string (uuid) | Required | Identifier of the activity context event definition |
| workflowSessionId | string (uuid) | Optional | Workflow session identifier |
| position | object (position) | Optional | Position associated with the context event |
| mileage | integer | Optional | Odometer reading (km) around event generation time |
| modifiedOn | string (date-time) | Required | Timestamp when the event was last modified |
| registeredOn | string (date-time) | Required | Timestamp when the event was registered |
| position.latitude | number (float) | Required | Latitude |
| position.longitude | number (float) | Required | Longitude |