aggregate_user_stats

Aggregates user statistics data from analyutics_session_metrics into user_aggregations table.
Aggregations are by user_id, time, queue_id, wrap_up_code, media_type, and direction.
The aggregation is done by summing the values of the session metrics for each user_id, time, queue_id, wrap_up_code, media_type, and direction.
The aggregations are stored in 15 minute intervals, and the interval is based on when the statistics were emitted.
Therefore when a conversation spans an interval, the statistics will be split between the intervals it spans.

Parameters

Parameter Description
start_date Start Date to aggregate data from
end_date End Date to aggregate data from