Use this to retrieve a list of the inspection data values from inspections within specified parameters.
logvers=2 - Addition of insp_zone_name as an attribute of the <idata> element| Required Information | |
|---|---|
| Name | Description |
| action | showopen |
| operation | inspdata |
| format | xml |
| Optional Information | |
| logvers | The supported versions are:
1 is assumed.
|
| location | Location to filter with. Text. If provided only inspections with an asset and or an operator assigned to that location will be returned. If location is not supplied or an empty location is specified, data from inspections from all locations will be returned. |
| start | Epoch timestamp. Results will be from inspections that occurred during or after this time.
May be combined with end to specify a particular time period. |
| end | Epoch timestamp. Results will be from inspections that occurred during or before this time.
May be combined with start to specify a particular time period. |
| tstype | A flag to indicate what the timestamp variable represents. Acceptable values are:
insp' will be assumed.
|
DTD for logvers=1:
<!ELEMENT inspdata (count, idata*)>
<!ATTLIST inspdata ver CDATA #REQUIRED>
<!ATTLIST inspdata count CDATA #REQUIRED>
<!ATTLIST inspdata start CDATA #REQUIRED>
<!ATTLIST inspdata end CDATA #REQUIRED>
<!ELEMENT idata (#PCDATA)>
<!ATTLIST idata id CDATA #REQUIRED>
<!ATTLIST idata timestamp CDATA #REQUIRED>
<!ATTLIST idata stat CDATA #REQUIRED>
<!ATTLIST idata fleet CDATA #REQUIRED>
<!ATTLIST idata asset_exsid CDATA #REQUIRED>
<!ATTLIST idata operator CDATA #REQUIRED>
<!ATTLIST idata optag CDATA #REQUIRED>
<!ATTLIST idata operator_exsid CDATA #REQUIRED>
<!ATTLIST idata loadlocation CDATA #REQUIRED>
<!ATTLIST idata extractor CDATA #REQUIRED>
<!ATTLIST idata assetid CDATA #REQUIRED>
<!ATTLIST idata opid CDATA #REQUIRED>
<!ATTLIST idata assetvalue CDATA #REQUIRED>
<!ATTLIST idata cfglabel CDATA #REQUIRED>
<!ATTLIST idata loadtime CDATA #REQUIRED>
<!ATTLIST idata sn CDATA #REQUIRED>
<!ATTLIST idata name CDATA #REQUIRED>
<!ATTLIST idata type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED>
DTD for logvers=2:
<!ELEMENT inspdata (count, idata*)>
<!ATTLIST inspdata ver CDATA #REQUIRED>
<!ATTLIST inspdata count CDATA #REQUIRED>
<!ATTLIST inspdata start CDATA #REQUIRED>
<!ATTLIST inspdata end CDATA #REQUIRED>
<!ELEMENT idata (#PCDATA)>
<!ATTLIST idata id CDATA #REQUIRED>
<!ATTLIST idata timestamp CDATA #REQUIRED>
<!ATTLIST idata stat CDATA #REQUIRED>
<!ATTLIST idata fleet CDATA #REQUIRED>
<!ATTLIST idata asset_exsid CDATA #REQUIRED>
<!ATTLIST idata operator CDATA #REQUIRED>
<!ATTLIST idata optag CDATA #REQUIRED>
<!ATTLIST idata operator_exsid CDATA #REQUIRED>
<!ATTLIST idata loadlocation CDATA #REQUIRED>
<!ATTLIST idata extractor CDATA #REQUIRED>
<!ATTLIST idata assetid CDATA #REQUIRED>
<!ATTLIST idata opid CDATA #REQUIRED>
<!ATTLIST idata assetvalue CDATA #REQUIRED>
<!ATTLIST idata cfglabel CDATA #REQUIRED>
<!ATTLIST idata loadtime CDATA #REQUIRED>
<!ATTLIST idata sn CDATA #REQUIRED>
<!ATTLIST idata name CDATA #REQUIRED>
<!ATTLIST idata type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED>
<!ATTLIST idata insp_zone_name CDATA #REQUIRED>
| Reply Data | |
|---|---|
| Name | Description |
| version | The version number of the OMI call and return data. |
| count | The number of results returned. |
| start | The request epoch start time. |
| end | The request epoch end time . |
| id | Inspection id number. Use as a target for the get inspection details function. |
| timestamp | The timestamp of the inspection. Specifically the timestamp of the primary asset tag read. Unix epoch timestamp (UTC). |
| stat | Inspection status. Single ASCII character.
|
| fleet | The primary asset fleet number in the inspection. Usually displayed in the web interface as Asset No. Alphanumeric, 20 characters maximum. |
| operator | Name of the operator (driver) that performed the inspection. First name, last name, 32 characters each maximum. |
| optag | Tagid for the operator (driver) that performed the inspection. Numeric. |
| loadlocation | The upload location the inspection was sent from. Alphanumeric, 32 characters maximum, may be empty. |
| extractor | The device that extracted the inspection from the Zonar 2010 hand held device.
|
| assetid | Primary asset id. |
| opid | Operator (driver) id. |
| assetvalue | The numeric value reported for the primary asset. Usually, but not always the odometer reading at the time of the inspection. The specific inspection procedures will determine what this value means. |
| cfglabel | Inspection configuration label. |
| loadtime | When the inspection was loaded into the database. Unix epoch timestamp (UTC). |
| sn | The serial number of the 2010 device used to perform the inspection. |
| name | Label used to identify the data value. String, 32 characters maximum length. |
| type | The type of data.
|
| insp_zone_name | The name of the LOI* where the inspection was performed. |
| - | The inspection data itself |
Example Request Get inspection data for all inspection within a period of time:
https://development.zonarsystems.net/interface.php?action=showopen&operation=inspdata&format=xml&customer=abc1234&start=1141397988&end=1141398000&vers=2
Reply (XML):
logvers=1 Reply
logvers=2 Reply