Hi All
I am successfully able to calculate an overall monthly Availability % which aligns to the value show in Host Classic for availability for a given host
Here is the DQL:
timeseries {AvailabilityStateUP=sum(dt.host.availability),end()}, filter:availability.state == “up”
, by: {dt.entity.host,availability.state},interval:1h
| expand `end()`
| filter dt.entity.host == “HOST-xxx”
| fieldsAdd hour = formatTimestamp(`end()`, format:“HH”)
| sort `end()`
| … rest of DQL statements for Availability Percentage Calculation and output fields
I would like to be able to report on Monthly availability percentage split by Business (06h00-18h00) and Non Business Hours (18h00-06h00) - ideally split at the “timeseries” level
In the screenshot below you can see that “AvailabilityStateUP” contains the array for the WHOLE reporting interval - in this case the last 24 hours - not split by “end()” - I can filter by “hour” after the timeries extraction but it does not help as the array contains all values for the whole reporting period
The problem is the availability figure for each hour will be the availability % calculation of the WHOLE array for the reporting period
I thought I could split by: end() but this is also not possible
I also looked at “bins:” but the documentation did not help me - is this an option? can someone assit with the syntax as per my requirement
Any other ides? Apprecaite any assistance
Thanks
Alan


