We have a requirement to count the total number of unscheduled outages in a month. The scenario is as follows:
1) We have monthly data available which has timestamp and a field “Status”. The values of Status is “S” for success and “F” for Failure.
2) The data should be monitored continuously for any failure occurred.
3) If any failure lasts for more than 5 mins, then it should be considered as an outage. But if failure is for less than 5 mins, then it should be ignored.
4) Similarly, while monitoring for failure, if any success occurs for less than 5 mins, then it should be ignored.
Please suggest any solution.
what does a cleared failure look like in the events?
I really like the transaction idea here ; -)
I'm not a fan of the transaction command but it's probably going to help you a lot here. Link to docs.
What I would do on a very high level:
Hope that helps.
Thanks,
J