I'm able to retrieve log data for monitors via the API. However, it seems this gives raw log results and includes multiple errors for a given poll period.
Is there a way to obtain calculated outage data?
For example, suppose I have a monitor/rule that has an error and an alert is sent at 10:00am. Later, the monitor/rule becomes successful, say at 12:45pm and an OKAY alert email is generated.
I'd like to be able to to retrieve an outage record that included the date/time at the start of the outage (10:00am) and the date and time that the outage ended (12:45pm) and the duration of the outage (2:45).
Is there a way to obtain such data programmatically? I'd like to be able to do this and specify the start and end dates for data selection this way I could report on outages seen since the beginning of the month, week, etc.