Alert Webhook

Print Friendly and PDF

Alerts are driving events captured by Driver•i® device. The application generates real-time Alerts to ensure visibility of the driving behavior and incidents that need quick action. This helps monitor performance, and proactively address any incidents caused and prevent them from happening in the future. 

The alert webhook pushes the latest data when an Alert is generated and updated data for the following events:   

Changes to Alert Status  

  • When the Alert status is changed from the previous status 
  • When the Alert is rejected by the user 
  • When the Alert is converted to a DriverStar. The newly created DriverStar will be posted and the old Alert will be replaced with updated data. 

Changes to Video Status 

  • When a new video is available (full or trimmed)  
  • When the video gets annotated 
  • When the video is deleted on the device 

Updates to Driver Assignment 

  • When the driver data changes during a driver assignment update.
  • When the alert assigned to a driver previously was changed during the driver assignment update. In this case, the alert webhook pushes the details with new driver data as an alert update and replaces the old alert with updated data.

The following table describes the parameters for the Alert event: 

Parameter 

Description 

duration 

The duration of the alert. 

gpsData 

Indicates the GPS coordinates: 

  • latitude: Latitude of the position in decimal degrees 
  • longitude: Longitude of the position in decimal degrees  
  • timestamp: Time when the event was captured 

tenantName 

The unique name of the Fleet. 

driver 

Information about the driver. Includes the following: 

  • firstName: First name of the driver 
  • lastName: Last name of the driver 
  • driverId:  Unique ID assigned to each driver 

details 

Alert information. Includes the following: 

Parameter 

Description 

Possible Values 

severity 

The risk level associated with an Alert 

12, 3, 4 

severityDescription is also sent in the payload, which describes these levels.  

severityDescription 

Description of the Alert severity

1: ALERT (SEVERE)

2: WARN (MODERATE)

3: DRIVER-STAR 

4: NEUTRAL 

cause 

The reason for the Alert 

0: Driver 

1: Third Party 

2: Undetermined  

typeId 

Type of Alert 

A value from 0 through 25. 

typeDescription 

Description of the Alert Type 

0: Neutral Events 

1: Following Distance 

2: Hard Braking 

3: Hard Acceleration 

4: High-G 

5: Traffic light violation 

6: Hard turn 

7: Relative speeding 

8: Sign violations 

9: Speeding violations 

10: Seatbelt compliance 

11: Driver-initiated 

12: Collision warning 

13: Weaving 

14: U-turn 

15: Error events 

16: Driver drowsiness 

17: DriverStar 

18: Railroad crossing 

19: Driver distraction 

20: Swerve 

21: Camera obstruction 

22: No trucks sign violations 

23: Face mask compliance 

24: Requested Video 

25: Low impact 

alertVideoStatus 

Status of alert video 

 

subTypeDescription 

Description of the Alert’s subtype. For example, for Driver Distraction, the subtypecan be “Talking on phone”, “Looking at phone”, “Looking down”, etc. 

 

category

Category of Alert

A value of 1 or 3.

categoryDescription 

Description of Alert Category. For example: 

  • Beta Alert  A new alert that is under evaluation and can be used for coaching, but it will not impact GreenZone score 
  • Regular Alert  GA alerts 

1: Regular alert  

3: Beta alert 

confidence

Indicates the confidence score of the generated Alert   

A value from 0.0 to 1.0

 

videos 

Video information. Includes the following: 

Parameter 

Description 

Possible Values 

id 

Unique video identifier 

 

position 

Camera position 

Note: The external cameras (positions 4,5,6, and 7) are available when fleet has bought Driver•i Hubx. 

0: outward 

1: inward 

2: left 

3: right 

4: external 0 

5: external 1 

6: external 2 

7: external 3 

status 

video status 

-1: Video not available 

0: Video can be requested 

1: Video pending 

2: Video available   

timestamp 

Time when the event was captured 

 

 

id 

Unique Alert identifier 

timestamp 

Time when the alert was generated. 

updatedOn

Time when the Alert was updated 

(This is a new parameter. It is supported from  January 2021. 

status

Status of the Alert. Possible values are: 

  • Confirmed 
  • Rejected 

(This is a new parameter supported for changes to any of the Alert properties. It is supported from January 2021). 

vehicle 

Vehicle information. Includes the following: 

  • vehicleNumber: Unique vehicle number in the fleet 
  • vin: Vehicle Identification Number 

webhookType 

The event corresponding to the webhook, in this case “alert”. 

camera 

Camera information. Includes the following: 

id: Unique camera identifier. 

This is the Webhook sample payload to share the Alert event detected.

{ 

    "gpsData": [{ 

            "latitude": 38.258686, 

            "timestamp": 1608503046840, 

            "longitude": -85.72605 

        },
{ 

            "latitude": 38.258686, 

            "timestamp": 1608503046840, 

            "longitude": -85.72605 

        } 

    ], 

    "videos": [{ 

            "id": 13107312725, 

            "position": 1, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312726, 

            "position": 2, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312727, 

            "position": 3, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312728, 

            "position": 4, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312729, 

            "position": 5, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312730, 

            "position": 6, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312731, 

            "position": 7, 

            "status": 1, 

            "timestamp": 1608502989597 

        },
{ 

            "id": 13107312724, 

            "position": 0, 

            "status": 2, 

            "timestamp": 1608502989597 

        } 

    ], 

    "updatedOn": 1608503341540, 

    "vehicle": { 

        "vehicleNumber": "xxxxxx", 

        "vin": " xxxxxx" 

    }, 

    "webhookType": "alert", 

    "duration": 1, 

    "tenantName": "xxxxxx", 

    "driver": { 

        "firstName": "xxxxxx", 

        "lastName": "xxxxxx", 

        "driverId": "xxxxxx" 

    }, 

    "details": { 

        "severity": 2, 

        "confidence": null, 

        "cause": 2, 

        "typeId": 4, 

        "typeDescription": "HIGH-G", 

       "alertVideoStatus": 2, 

        "severityDescription": "WARN", 

        "category": 1, 

        "subTypeDescription": "Moderate Impact", 

        "categoryDescription": "Regular Alert" 

    }, 

    "id": 43, 

    "camera": { 

        "id": "1630019XXXX" 

    }, 

    "timestamp": 1608503046840, 

    "status": "CONFIRMED" 

} 
Was this article helpful?

We're sorry to hear that!

Please tell us why.
0 out of 0 found this helpful