Dear Support Team,
Hello,
I can show the graph png or svg with desired period via API (live and historic),
How can i show the "Sums Averages" table that exist under the graph in sensor's page in PRTG UI (live, custom or historic) via API also?
Thanks a lot
Article Comments
Hello,
the historic API only gets you the sensor data. Additional information cannot be computed by the API, that has to be done with the script accessing the API and getting the data.
A (though quite complex) alternative would be to build the interface's historic data URL, get the HTML response from the webserver, and parse the result for data like averages.
Jul, 2020 - Permalink
The table i mentioned is just under the graph and is part of sensor data!
Jul, 2020 - Permalink
Hello,
the sum (and/or average) is computed from the data table, it is not returned by an PRTG API call.
Jul, 2020 - Permalink
Hello,
the historic API only gets you the sensor data. Additional information cannot be computed by the API, that has to be done with the script accessing the API and getting the data.
A (though quite complex) alternative would be to build the interface's historic data URL, get the HTML response from the webserver, and parse the result for data like averages.
Jul, 2020 - Permalink