I have a scenario with a flink application that receives data streams in the following format:
{ "event_id": "c1s2s34", "event_create_timestamp": "2019-03-07 11:11:23", "amount": "104.67" }
I am using the following tumbling window to find the sum, count, and average amounts for input streams in the last 60 seconds.
keyValue.timeWindow(Time.seconds(60))
However how can I label the aggregated outcome such that I can say that the output data stream between 16:20 and 16:21 the aggregated results are sum x, count y, and average z.
Any help is appropriated.