Page 2 of 2

Re: Obtaining Availability Report Data Via API

Posted: Wed May 01, 2019 11:47 am
by awilson
Just to be clear, the only way to programmatically extract the same results as the XI availability report is to use the curl and chrome developer approach to identify the exact parameters?

Thanks.

Re: Obtaining Availability Report Data Via API

Posted: Wed May 01, 2019 3:34 pm
by npolovenko
@awilson, From the API reports you can get the availability data for a host, service, hostgroup or a servicegroup and in the output you'll see total_time_down and time_down_scheduled. If you deduct total_time_down - time_down_scheduled you'll get the availability time without scheduled downtime.
That's the only way I could think of.

Re: Obtaining Availability Report Data Via API

Posted: Wed May 15, 2019 12:40 pm
by awilson
Thank you. Do you know which release added the hostavailability and serviceavailability endpoints?

Thanks!

Re: Obtaining Availability Report Data Via API

Posted: Wed May 15, 2019 3:56 pm
by npolovenko
@awilson, We added these API endpoints in XI 5.5.

Re: Obtaining Availability Report Data Via API

Posted: Fri May 17, 2019 1:09 pm
by awilson
Thanks. You can close this. I appreciate the help.