I have created a stream analytic's job in Azure and i want to display the results in Power BI. The job is pretty simple since all i want to do is display every 1 sec the number of events which occured in the last 10 minutes. However, when the last 10 minutes pass, i need the counter to reset which means that i want the window to restart after 10 mins.
I have the following options:
- Use a tumbling window with duration 10 mins: No, since this wont display the result every 1 sec but after 10 mins
- Use a Hopping window: HoppingWindow(Duration(minute, 10), Hop(second, 1)). This works for the first 10 mins but after that no because it hops-slides 1 sec.
- Use a Sliding Window with a 10 mins size: No, because it slides for 10 mins when an event occurs
- Use a SessionWindow: No, since the session window returns an output only when the window closes.
I cant figure a solution since my goal is a window that expands till it reaches the maximum 10 mins duration(then it reopens) and produces the output every one second. Any help is welcome.