Returns aggregate statistics for the given period of time aggregated by the aggregation period.
Returned values:
hourMs: Start of the time period in epoch millis.
number: Phone number for the aggregation period if aggregating by phone number.
webrtcUserId: Webrtc user's client id if aggregating by webrtc users.
numberSetId: Number set id if aggregating by number sets.
sms: Data about sms messages during the aggregation period.
sms.inbound: Number of inbound sms messages.
sms.outbound: Number of outbound sms messages.
sms.inboundCost: Cost of all inbound sms messages.
sms.outboundCost: Cost of all outbound sms messages.
sms.minMessageCount: Smallest size of a single billable sms message.
sms.maxMessageCount: Largest size of a single billable sms message.
sms.optOuts: Number of sms opt outs received.
call: Call data about calls completed during the aggregation period grouped by call type.
call.inboundCount: Number of inbound calls completed.
call.outboundCount: Number of outbound calls completed.
call.inboundCallDuration: Duration of all inbound calls in seconds.
call.outboundCallDuration: Duration of all outbound calls in seconds.
call.minInboundDuration: Minimum duration of inbound calls in seconds.
call.maxInboundDuration: Maximum duration of inbound calls in seconds.
call.minOutboundDuration: Minimum duration of outbound calls in seconds.
call.maxOutboundDuration: Maximum duration of outbound calls in seconds.
call.inboundCost: Total cost of all inbound calls.
call.outboundCost: Total cost of all outbound calls.
