Retrieve the operational statistics of a partner’s devices and organizations. Only partners can make this call.
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ 'https://api-prod.surfsight.net/v2/partners/operational-statistics?months=2&weeks=5' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": {
- "devices": {
- "total": 53,
- "activated": 43,
- "deactivated": 10,
- "pendingActivation": 10,
- "suspended": 10
}, - "trends": {
- "activations": {
- "total": 53,
- "previousMonths": [
- {
- "monthsAgo": 2,
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "count": 1
}
], - "previousWeeks": [
- {
- "weeksAgo": 2,
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "count": 1
}
]
}, - "organizations": {
- "total": 53,
- "previousMonths": [
- {
- "monthsAgo": 2,
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "count": 1
}
], - "previousWeeks": [
- {
- "weeksAgo": 2,
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "count": 1
}
]
}
}, - "devicesByOrganization": [
- {
- "organizationId": 17,
- "name": "Company Name",
- "count": 53
}
], - "recordingHealthFailedByOrganization": [
- {
- "organizationId": 17,
- "name": "Company Name",
- "count": 1
}
], - "recordingHealthSummary": [
- {
- "recordingTestResult": "passed",
- "count": 27
}
], - "alarmsByOrganization": [
- {
- "organizationId": 17,
- "name": "Company Name",
- "count": 1
}
], - "alarmsByType": [
- {
- "alarmDefinitionId": 625,
- "name": "Driver dashcam recording failure",
- "count": 1
}
]
}, - "requestId": "06327cae-e075-42ca-b620-c5cfdd3b4e37"
}