Greetings,
I´m interested in creating a historicdata query to the prtg API that can also have a column with the object ID into the csv.
Right now I got this which is the normal API call:
http://<prtgserver>/api/historicdata.csv?id=100015&avg=3600&sdate=2018-08-15-00-00-00&edate=2018-08-16-00-00-00&username=<user>&passhash=<hash>
the normal output file would have columns like this:
Date Time, Date Time(RAW), Value, Value(RAW), Downtime, Downtime(RAW), Coverage, Coverage(RAW)
The desired result would be something like this:
ID, Date Time, Date Time(RAW), Value, Value(RAW), Downtime, Downtime(RAW), Coverage, Coverage(RAW)
Where Id is the object Id of the sensor and would be repeated on each row.
Is it possible?
As always thanks for your time and help!
Add comment