Hello @Andrew Gattsek ,
Thank you for the update. I consulted with one of my colleagues that shared the following KQL query using the Log Analytics API that should be able to return the information you need per your request:
let start_time=startofday(datetime("2022-10-12"));
let end_time=endofday(datetime("2022-10-14"));
Heartbeat
| where TimeGenerated > start_time and TimeGenerated < end_time
| summarize heartbeat_per_hour=count() by bin_at(TimeGenerated, 1h, start_time), Computer
| extend available_per_hour=iff(heartbeat_per_hour>0, true, false)
| summarize total_available_hours=countif(available_per_hour==true) by Computer
| extend total_number_of_buckets=round((end_time-start_time)/1h)
| extend availability_rate=total_available_hours*100/total_number_of_buckets
Please let us know if you have any questions or concerns and we'll be happy to assist you further if needed.
Thanks!
Carlos V.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.