We want to generate availability report through API. But we are unable find API path to get availability data of device/device group in text format ?
Can anyone help on this ?
We want to generate availability report through API. But we are unable find API path to get availability data of device/device group in text format ?
Can anyone help on this ?
there exists no API Call for this at moment,
But shouldn’t be such hard to write one, because calculated values for time period and device are in a table.
take a look into table availability.
If you like to write an API call, feel free to do it.
I personally would prefer a json tree to be returned:
hostname 1:
timeperiod a: availabilityvalue
timeperiod b: availabilityvalue
timeperiod c: availabilityvalue
hostname 2:
timeperiod a: availabilityvalue
timeperiod b: availabilityvalue
timeperiod c: availabilityvalue
On call i think filter for hostname and/or timerperiod would be usefull also.
hope this helps a little bit
i wrote a PR for it …