Skip to end of banner
Go to start of banner

Asset Reporting Behavior In The SDK

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

The “Asset Report” method in the SDK solution returns a list of all units associated with the object the user requested.

By default, when you run the URL of the Asset Report, no date is required, so the measurement starts on 01-01-2000 by default, so you will receive data for all assets, even if they have not been updated.

Sometimes it is not necessary to receive all the units, but only those that have been updated since the last update (i.e. to maintain the "last" status of the units).

The purpose of this document is to provide information on how to receive updated unit data.

  1. Create a request for the SDK.
    For example:

    https://staging-sdk-core.galooli-systems.com/json/Assets_Report?userName=*****.*****@galooli.com&password=*****&requestedUnits=g1904&lastGmtUpdateTime=2000-01-01 00:00:00&requestedPropertiesStr=real_time_GPS_Time,real_time_status,real_time_Signal_Quality

  2. Locate the date of the "MaxGmtUpdateTime" within the data you have reserved and copy it. This is the last time this report was run.

    {
      "MaxGmtUpdateTime":"2022-11-09 12:28:22",
      "CommonResult":{
          "ResultDescription":"",
          "ResultCode":0,
          "DataSet":[["2021-07-25 21:44:50","On","67"],["2022-10-31 21:21:02","Off","54"],["2020-03-28 23:40:40","Off","74"],["2018-04-20 12:42:50","Off","64"],["2022-11-05 18:55:00","Off","100"],["2018-07-29 10:34:45","Off","45"],["2022-06-15 15:09:05","Off","48"],["2020-04-30 17:39:03","Off","71"],["2021-07-23 00:02:25","Off","100"],["2020-04-01 07:48:58","Off","41"],["2020-11-03 15:22:24","Off","51"],["2022-10-31 18:07:29","Off","100"],["2022-07-21 12:45:40","Off","67"],["2022-11-02 16:57:09","On","83"],["2022-07-15 06:26:25","Off","90"],["2021-11-11 16:09:04","Off","64"],["2021-11-02 20:00:26","Disconnected","54"],["2000-01-08 09:00:00","Off","100"],["2000-01-09 06:00:00","Off","67"],["2000-01-07 15:00:00","On","96"],["2000-01-08 09:00:00","Off","58"],["2000-01-07 21:00:00","Off","100"],["2000-01-08 06:00:00","Off","67"],["2000-01-06 18:00:00","Off","54"],["2000-01-07 21:00:00","Off","67"],["2000-01-07 00:00:00","Off","54"],["2000-01-07 06:00:00","On","93"],["2000-01-08 15:00:00","Off","64"],["2000-01-08 12:00:00","Off","67"],["2000-01-08 15:00:00","Off","100"],["2000-01-08 09:00:00","Off","61"],["2000-01-07 21:00:00","Off","96"],["2000-01-08 00:00:00","Off","64"],["2000-01-07 18:00:00","Off","87"],["2000-01-08 00:00:00","Off","93"],["2000-01-07 21:00:00","Off","67"],["2000-01-08 00:00:00","Off","67"],["2000-01-06 18:00:00","Off","41"],["2000-01-08 12:00:00","Off","70"],["2000-01-07 15:00:00","Off","64"],["2000-01-08 12:00:00","Off","100"],["2000-01-07 15:00:00","Off","74"],["2000-01-07 12:00:00","On","0"],["2000-01-07 21:00:00","Off","70"],["2000-01-08 06:00:00","Off","54"],["2000-01-07 06:00:00","Off","74"],["2000-01-08 15:00:00","Off","77"],["2000-01-12 06:00:00","Off","100"],["2000-01-09 09:00:00","Off","74"],["2000-01-12 18:00:00","Off","64"],["2000-01-12 21:00:00","Off","25"],["2000-01-12 18:00:00","Off","90"],["2000-01-12 15:00:00","Off","80"],["2000-01-11 21:00:00","On","58"],["2000-01-12 21:00:00","Off","100"],["2000-01-09 12:00:00","Off","83"],["2000-01-09 06:00:00","Off","77"],["2000-01-11 00:00:00","Off","58"],["2000-01-12 16:00:00","Off","83"],["2000-01-08 21:00:00","Off","67"],["2000-01-13 00:00:00","Off","96"],["2000-01-09 06:00:00","Off","74"],["2000-01-06 15:00:00","Off","93"],["2000-01-13 00:00:00","Off","77"],["2000-01-07 18:00:00","Off","80"],["2000-01-10 06:00:00","On","51"],["2000-01-05 19:00:00","Off","87"],["2000-01-07 12:00:00","Off","77"],["2000-01-10 09:00:00","Off","48"],["2000-01-08 16:00:00","Off","90"],["2000-01-09 12:00:00","Off","64"],["2000-01-07 21:00:00","Off","67"],["2000-01-10 12:00:00","Off","61"],["2000-01-09 06:00:00","Off","100"],["2000-01-09 06:00:00","Off","74"],["2000-01-09 09:00:00","Off","90"],["2000-01-09 03:00:00","Off","38"],["2000-01-09 15:00:00","Off","74"],["2000-01-09 12:00:00","Off","100"],["2000-01-10 00:00:00","Off","61"],["2000-01-02 06:00:00","On","87"],["2000-01-02 15:00:00","Off","64"],["2000-01-02 18:00:00","Off","70"],["2000-01-02 09:00:00","On","87"],["2000-01-02 21:00:00","Off","80"],["2000-01-03 00:00:00","Off","87"],["2000-01-02 21:00:00","On","100"],["2000-01-03 00:00:00","Off","67"],["2000-01-02 06:00:00","Off","70"],["2000-01-02 18:00:00","Off","80"],["2000-01-02 21:00:00","Off","67"],["2000-01-02 21:00:00","Off","64"],["2000-01-02 21:00:00","Off","80"],["2000-01-02 21:00:00","Off","58"],["2000-01-02 21:00:00","Off","74"],["2000-01-08 12:00:00","Off","67"]]
      }
    }

  3. Before you send the next request, place the date you copied from the "MaxGmtUpdateTime” in the URL at the "lastGmtUpdateTime" date.

    https://staging-sdk-core.galooli-systems.com/json/Assets_Report?
      userName=*****.*****@galooli.com
      &password=*****&requestedUnits=g1904
      &lastGmtUpdateTime=2022-11-09 12:28:22
      &requestedPropertiesStr=real_time_GPS_Time,real_time_status,real_time_Signal_Quality

  4. As a result, you will receive only information about units that have been modified

    {
      "MaxGmtUpdateTime":"2022-11-09 13:07:18",
      "CommonResult":{
          "ResultDescription":"",
          "ResultCode":0,
          "DataSet":[["2021-07-25 21:44:50","Off","67"],["2022-10-31 21:21:02","Off","54"],["2020-03-28 23:40:40","Off","74"],["2018-04-20 12:42:50","Off","58"],["2022-11-05 18:55:00","Off","100"],["2018-07-29 10:34:45","Off","58"],["2022-06-15 15:09:05","Off","48"],["2020-04-30 17:39:03","Off","67"],["2021-07-23 00:02:25","Off","100"],["2020-04-01 07:48:58","Off","41"],["2020-11-03 15:22:24","Off","51"],["2022-10-31 18:07:29","Off","100"],["2022-07-21 12:45:40","Off","74"],["2022-11-02 16:57:09","On","83"],["2022-07-15 06:26:25","Off","93"],["2021-11-11 16:09:04","Off","64"],["2021-11-02 20:00:26","Disconnected","64"],["2000-01-08 09:00:00","Off","100"],["2000-01-09 06:00:00","Off","64"],["2000-01-07 15:00:00","On","93"],["2000-01-08 09:00:00","Off","54"],["2000-01-07 21:00:00","Off","100"],["2000-01-08 06:00:00","On","61"],["2000-01-06 18:00:00","Off","54"],["2000-01-07 21:00:00","Off","67"],["2000-01-07 00:00:00","Off","61"],["2000-01-07 06:00:00","On","96"],["2000-01-08 15:00:00","Off","64"],["2000-01-08 12:00:00","Off","64"],["2000-01-08 15:00:00","Off","100"],["2000-01-08 09:00:00","Off","61"],["2000-01-07 21:00:00","Off","96"],["2000-01-08 00:00:00","Off","58"],["2000-01-07 18:00:00","Off","83"],["2000-01-08 00:00:00","Off","93"],["2000-01-07 21:00:00","Off","64"],["2000-01-08 00:00:00","Off","64"],["2000-01-06 18:00:00","Off","41"],["2000-01-08 12:00:00","Off","74"],["2000-01-07 15:00:00","Off","64"],["2000-01-08 12:00:00","Off","100"],["2000-01-07 15:00:00","Off","77"],["2000-01-07 12:00:00","On","80"],["2000-01-07 21:00:00","Off","70"],["2000-01-08 06:00:00","Off","58"],["2000-01-07 06:00:00","Off","74"],["2000-01-08 15:00:00","Disconnected","77"],["2000-01-12 06:00:00","Off","100"],["2000-01-09 09:00:00","Off","67"],["2000-01-12 18:00:00","Off","64"],["2000-01-12 21:00:00","Off","19"],["2000-01-12 18:00:00","Off","93"],["2000-01-12 15:00:00","Off","83"],["2000-01-11 21:00:00","On","58"],["2000-01-12 21:00:00","Off","100"],["2000-01-09 12:00:00","Off","80"],["2000-01-09 06:00:00","Off","74"],["2000-01-11 00:00:00","Off","54"],["2000-01-12 16:00:00","Off","80"],["2000-01-08 21:00:00","Off","74"],["2000-01-13 00:00:00","Off","100"],["2000-01-09 06:00:00","Off","74"],["2000-01-06 15:00:00","Off","93"],["2000-01-13 00:00:00","Off","70"],["2000-01-07 18:00:00","Off","83"],["2000-01-10 06:00:00","Off","54"],["2000-01-05 19:00:00","Off","90"],["2000-01-07 12:00:00","Off","77"],["2000-01-10 09:00:00","Off","67"],["2000-01-08 16:00:00","Off","90"],["2000-01-09 12:00:00","Off","61"],["2000-01-07 21:00:00","Off","67"],["2000-01-10 12:00:00","Off","61"],["2000-01-09 06:00:00","Off","100"],["2000-01-09 06:00:00","On","70"],["2000-01-09 09:00:00","Off","87"],["2000-01-09 03:00:00","Off","38"],["2000-01-09 15:00:00","Off","74"],["2000-01-09 12:00:00","Off","100"],["2000-01-10 00:00:00","Off","64"],["2000-01-02 06:00:00","On","87"],["2000-01-02 15:00:00","Off","45"],["2000-01-02 18:00:00","Off","70"],["2000-01-02 09:00:00","On","80"],["2000-01-02 21:00:00","Off","80"],["2000-01-03 00:00:00","Off","90"],["2000-01-02 21:00:00","Off","96"],["2000-01-03 00:00:00","Off","70"],["2000-01-02 06:00:00","Off","70"],["2000-01-02 18:00:00","Off","80"],["2000-01-02 21:00:00","Off","70"],["2000-01-02 21:00:00","Off","67"],["2000-01-02 21:00:00","Off","80"],["2000-01-02 21:00:00","Off","51"],["2000-01-02 21:00:00","Off","74"],["2000-01-08 12:00:00","Off","64"]]
      }
    }


If the “lastGmtUpdateTime” does not return a single line in the answer since no unit has been updated between the last query and now the value returned in the “MaxGmtUpdateTime” reply will simply be the value sent in “lastGmtUpdateTime”, which will require the user to send another request with the same “lastGmtUpdateTime”.

  • No labels