Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:mervis-scada:50-api [2023/09/26 14:39]
v.kohout [api/v3/get/history]
en:mervis-scada:50-api [2023/09/26 14:42]
v.kohout [api/get/history/specific]
Line 249: Line 249:
    * URL: /api/get/history/specific?format=json    * URL: /api/get/history/specific?format=json
    * Method: POST    * Method: POST
-   * You should always use "token" instead of simple "name" "password". Non-token call is slower.+   * You should always use token ("t"instead of simple name and password ("nand "p"). Non-token call is slower.
    * "dataSpec" - data specification    * "dataSpec" - data specification
       MinTimestamp = 0,       MinTimestamp = 0,
Line 272: Line 272:
   "count":1000,   "count":1000,
   "dataSpec":2,    "dataSpec":2, 
-  "refTime":"\/Date(123)\/",+  "refTime":"\/Date(1692788459000)\/",
   "dpIds":["58426e69-46ba-4925-9a5c-d7d65efb9886","f4501a2e-62ed-430e-9346-5e155e730fe3","28e7d087-917a-456a-9d02-96882f572286"]   "dpIds":["58426e69-46ba-4925-9a5c-d7d65efb9886","f4501a2e-62ed-430e-9346-5e155e730fe3","28e7d087-917a-456a-9d02-96882f572286"]
 } }
Line 279: Line 279:
 **Response** **Response**
  
-   * Empty "segmentation" ("requestState") marks response containing last data of the requested series 
-   * "requestState" and "serverState" must be copied to the next API call 
    * Values    * Values
      * v - value      * v - value
      * ts - timestamp - start of the value validity period      * ts - timestamp - start of the value validity period
      * gt - goodthrough - end of the value validity period      * gt - goodthrough - end of the value validity period
-     * i - interval, only present if it differs from the interval in Meta section +     * i - interval
-   * Meta +
-     * type - value type - double, string, datetime +
-     * unit - unit +
-     * interval - expected interval between the stored records. Useful to identify missing data.+
  
 <code javascript> <code javascript>
  • © Energocentrum Plus, s.r.o. 2017 - 2024