GET api/telemetry/johnstonsweeper/diagnosticdata/{asset}/{startdate}/{enddate}
View all diagnostic error data that has been received for a specific asset since a given time, or between 2 timestamps. Up to 1000 records can be requested at a time.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| asset |
The asset name of the asset to query |
string |
Required |
| startdate |
The start date/time (utc time) from which to return data. Format: yyyy-MM-dd HH:mm:ss |
date |
Required |
| enddate |
The end date/time (utc time) to which data should be returned. If this parameter is omitted then all records from 'startdate' will be returned. Format: yyyy-MM-dd HH:mm:ss |
date |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of SweeperDiagnosticError| Name | Description | Type | Additional information |
|---|---|---|---|
| JohnstonDiagnosticErrorData |
Johnston diagnostic error data for this record. |
JohnstonDiagnosticErrorData |
None. |
| RecordID |
Unique record ID for the telemetry record |
integer |
None. |
| UTCTime |
The timestamp (UTC) at which the data in this record was captured. |
date |
None. |
| LocalTime |
The timestamp (Local Time) at which the data in this record was captured. |
date |
None. |
| DeviceIMEI |
The unique ID of the telematics device which generated this record. |
string |
String length: inclusive between 0 and 30 |
| AssetName |
The name of the asset to which this data belongs. |
string |
String length: inclusive between 0 and 30 |
| Ignition |
The state of the asset's ignition/engine running switch. |
boolean |
None. |
| GPSLock |
Specifies whether the GPS signal is 'locked' |
boolean |
None. |
| Latitude |
GPS latitude position (Decimal Degrees) |
decimal number |
None. |
| Longitude |
GPS longitude position (Decimal Degrees) |
decimal number |
None. |
| Heading |
GPS compass bearing (Degrees) |
decimal number |
None. |
| GPSSpeed |
Current asset speed (GPS Calculated) |
decimal number |
None. |
| GPSSpeedUnit |
The unit of the GPSSpeed value (MPH or KPH)) |
SpeedUnit |
None. |
| Location |
Street address for this location |
Location |
None. |
Response Formats
application/json, text/json
Sample not available.