Since the release of the API, the “all time uptime ratio” for each monitor is provided by default.
Many users have asked for the ability to get weekly and/or monthly uptime ratios to integrate more values into their websites/apps.
Today, we have added a new variable to the
getMonitors method which can return the uptime ratio of any given period.
It can provide values back to 2 months (this is how long the logs are kept for).
The new feature is smart enough to return the ratios of multiple intervals in a single API call.
In order to use it, just add:
customUptimeRatio=7 to the
getMonitors request for getting the 7 days uptime. Or you can go with
customUptimeRatio=7-30-60 to get uptime ratios of all 3 days.
To learn more about the usage, just check the
getMonitors method in the API docs.