Write a Python function to parse a stream of customer event logs and aggregate user behavior metrics within a sliding time window for Braze.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.