New DVIR records can be pulled down from Azure Service Bus. The vehicle-inspection.created records are published from the ELD system to TTC whenever a new Driver Vehicle Inspection Report (DVIR) is created. This can occur when the driver does a Post-Trip inspection from a mobile device in a vehicle or a DVIR is submitted on behalf of the driver in the PFM by a PFM user. The vehicle-inspection-created records will have a header and a data payload.
{
"specversion": "1.0",
"type": "com.trimble.transportation.safety.vehicle-inspection.created.v1",
"source": "https://tcx-coremessagingroutingservicev2.com/",
"id": "dfbe76e3-b258-4846-8408-3c810b97c49c",
"time": "2022-05-20T19:10:19.1147918Z",
"datacontenttype": "application/json",
"data": "{\"accountId\":\"123e4567-e89b-12d3-a456-426614174000\",\"organizationId\":\"1111\",\"reportNumber\":85,\"repairOrder\":\"\",\"reportDateTime\":\"2022-05-20T19:09:35\",\"updatedDateTime\":\"2022-05-20T19:10:17Z\",\"assetType\":\"Trailer\",\"assetId\":\"WAGON1\",\"location\":\"2mi NNW MN Walnut Grove\",\"latitude\":44.223611,\"longitude\":-95.468889,\"createdBy\":{\"userIdType\":\"EfleetDriver\",\"userId\":\"lauwil\"},\"repairCertification\":{\"certificationStatus\":\"NONE\",\"certificationDateTime\":\"1800-01-01T00:00:00\"},\"acknowledgement\":{\"safetyStatus\":\"NONE\",\"acknowledgementDateTime\":\"1800-01-01T00:00:00\"},\"notes\":[],\"defectDetails\":[]}"
}