Monitors a stream of events and invokes a callback whenever the number of events within a sliding window exceeds a configured threshold. Useful for detecting error ...
numbers: List of integers representing the input array. window_size: Size of the sliding window (must be positive).