This are the URLs given in the doc
/api/historicdata.csv?id=objectid&avg=0&sdate=2009-01-20-00-00-00&edate=2009-01-21-00-00-00
/chart.png?id=objectid&avg=15&sdate=2009-01-20-00-00-00&edate=2009-01-21-00-00-00&width=850&height=270&graphstyling=baseFontSize='12'%20showLegend='1'&graphid=-1
Is there not a way, also, to use any time range like the one which are provided in the web pages, like 1 day, 7 days, today, yesterday, last week, last month, instead of having to calculate a start date from today's date before to configure the URL.
This could be very helpful for some cases. For example to configure a button with personnal html on a map just to have a look with 1 click on the graph of known periods or known cases without to go back to the PRTG session to do again all the choises.
If there are not such hidden functions, I think all the html and js file are already existing in PRTG to provide such a solution to non programmer customers.
This would lead to very simple API URLs:
/api/historicdata.csv?id=objectid&avg=0&daterange=yesterday
or
/chart.png?id=objectid&avg=15&daterange=lastweek&width=850&height=270&graphstyling=baseFontSize='12'%20showLegend='1'&graphid=-1
Add comment