Go to All Forums

Availability Summary Reports (with charts) using API

Is there a way to produce the Availability Summary Reports (with charts) using API:

www.site24x7.com/app/client#/reports/URL/availability-summary-report/70842000026593156/7//true/70842000011245007////

www.site24x7.com/app/client#/reports/URL/performance-report/

 

Like (3) Reply
Replies (1)

Hi Dmitry11,

Yes, it possible to generate Availability Summary Report for a monitor by invoking the following API,

https://www.site24x7.com/api/reports/availability_summary/{{monitor_id}}?period={{period_constant}}

More details about the API response and period_constant can be found in our API documentation
https://www.site24x7.com/help/api/#availability-summary-by-monitor

https://www.site24x7.com/help/api/#period_constants


Data for charts can be found in the API response under the node "charts". It's an Array of Objects.

"Availability Percentage Trend" chart shown in UI can be found in the object, where value of attribute "key" is "percentage_chart".
Node "data" in the object specifies reporting time, Availability, Unavailability, Maintenance percentages respectively for the reporting time.
Eg: ["2020-04-23T00:00:00+0900", 98, 2, 0]


"Downtime Report" chart shown in UI can be found in the object, where value of attribute "key" is "down_count_chart".
Node "data" in the object specifies reporting time and count of monitor downtimes for the reporting time.
Eg: ["2020-04-23T00:00:00+0900", 2]


Happpy Monitoring.

Regards,
Vishnu Ranjan.

Like (0) Reply

Was this post helpful?