Hi,

We use PRTG http api to get channel data, but datetime_raw is the time of app run not PRTG sampling time (interval is 60s). It is bug of PRTG HTTP API? Here is the uri : https://prtg.myorg.tw/api/table.xml?content=channels&output=xml&columns=objid,name,datetime,lastvalue&id=8325

Xml result :

<?xml version="1.0" encoding="UTF-8"?>
<channels totalcount="0" listend="1">
  <prtg-version>17.3.33.2830</prtg-version>
  <item>
    <objid>-4</objid>
    <objid_raw>*000000004</objid_raw>
    <name>Downtime</name>
    <datetime>12/13/2017 6:30:11 AM</datetime>
    <datetime_raw>43081.9376284143</datetime_raw>
  </item>
  <item>
    <objid>0</objid>
    <objid_raw>0000000000</objid_raw>
    <name>Value</name>
    <datetime>12/13/2017 6:30:11 AM</datetime>
    <datetime_raw>43081.9376284143</datetime_raw>
    <lastvalue>337 #</lastvalue>
    <lastvalue_raw>337.0000</lastvalue_raw>
  </item>
</channels>

Article Comments

Hello,

Thank you for the KB-Post. The datetime_raw is an internal formation. It is a decimal date that you should be able to convert similar to the date in an excel spreadsheet. It's definitely not the interval. And really only meant for internal use actually.

best regards.


Dec, 2017 - Permalink

How to get Timestamp of the last channel result actually? We have convert datetime_raw to .net datetime, and konwn datetime_raw is not interval.


Dec, 2017 - Permalink

How to get Timestamp of the last channel result (like lasttime_raw_utc)? We have convert datetime_raw to .net datetime.


Dec, 2017 - Permalink

How to get Timestamp of the last channel result (like lasttime_raw_utc)?


Dec, 2017 - Permalink

Can PRTG HTTP-API add the [lastcheck] or [lasttime_raw_utc] property when get channel data, or add all channel data to sensortree?


Dec, 2017 - Permalink

Just use the normal <datetime>12/13/2017 6:30:11 AM</datetime>. This is the time of the very scan.


Dec, 2017 - Permalink