Get all events report for company
GET
/partners/companies/{company}/reports/eventsReturns a report object containing the sum of occurences and data usage each event type contributed for the devices passed into the request for the specified date window.
Devices that do not have any relevant data for the time requested will not return in the report object.
Roles with endpoint access
Role | Permission |
---|---|
Partner | |
Partner View | |
Custom Partner | |
Fleet Manager | |
Group Manager | |
User | |
Custom User |
Request
Can pass in either company_name
or company_id
value. If using company_id
, then byid
param must also be sent with request.
Comma-separated list of event types to retieve report for
Start date of report data. YYYYMMDD
End date of report data. YYYYMMDD
Comma-separated values of device IDs to retreive report data for.
Comma-separated values of camera alerts
If passing company_id
into URL, this param is also required.
Request samples
Responses
Request metadata object
HTTP status code returned by server
"OK" if request successful, otherwise "Failed"
{
"meta": {
"code": 200
},
"response": {
"report": {
"data": [
[
8,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
43
]
],
"data_usage": [
[
43.35,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
],
[
0,
0
]
],
"device_id": [
3868616673,
5179426116
],
"device_name": [
"Truck A",
"Truck B"
],
"events": [
"Drowsiness",
"Custom Video Request",
"High G-Force",
"Driver",
"CameraBlock"
],
"uid": "0"
}
},
"result": "OK"
}