| Required Information | |
|---|---|
| Name | Description |
| action | showstats |
| operation | yardlog |
| format | xml |
| Optional Information | |
| target | Query for a specific asset and only return information for that asset. If specified a reqtype (request type) must be specified as well. |
| reqtype | Flag to identify the key being used to query. Acceptable values:
|
| type | When using reqtype of tag or fleet this must also be specified in version 2. In version 1.x type Standard (0) is assumed. |
| start | A Unix epoch time stamp. Only return yard state events later than this time. May be combined with end. |
| end | A Unix epoch time stamp. Only return yard state events earlier than this time. May be combined with start. |
| location | Location to filter with. Text. If provided only events for assets assigned to that location will be returned. |
Returned information:
DTD:
<!ELEMENT yardlog (count, event*)>
<!ATTLIST yardlog ver CDATA #REQUIRED>
<!ELEMENT count (#PCDATA)>
<!ELEMENT event (#EMPTY)>
<!ATTLIST event assetid CDATA #REQUIRED>
<!ATTLIST event tag CDATA #REQUIRED>
<!ATTLIST event fleet CDATA #REQUIRED>
<!ATTLIST event state CDATA #REQUIRED>
<!ATTLIST event timestamp CDATA #REQUIRED>
<!ATTLIST event uploadlocation CDATA #IMPLIED>
<!ATTLIST event opstatus CDATA #IMPLIED>
<!ATTLIST event inspid CDATA #IMPLIED>
<!ATTLIST event inspdate CDATA #IMPLIED>
Note: The opstatus, inspid and inspdate attributes refer to the asset's current
operational status, last inspection id number and last inspection date respectively.
See the get assets function for a detailed explanations of the operational status.
Example Request:
http://development.zonarsystems.net/interface.php?action=showstats&operation=yardlog&format=xml