I am trying to generate uptime report using pingdom apis.
I am using the following formula. But somehow the percentage is not exact as shown in their UI.
( ( number_of_days_in_the_months * 86400 ) / 100 ) * uptime_percentage = uptime_in_seconds
Am I doing anything wrong ?
Here is the correct way of doing this.
Use summary.outage api to get the results and then do the following
This works perfect for me. You can enhance the java code as per your expertise.
Hope this is of help to someone.