GetHistoricalInstanceReport
Retrieves the historical data report of a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| StartTime |
integer |
No |
The start time of the historical data to retrieve, formatted as a UNIX timestamp in milliseconds. This parameter is optional. The default value is 00:00:00 of the current day. The earliest allowed time is 180 days before the current time. The time precision for statistics is hours. The time is rounded down to the nearest hour, and the interval is closed. |
1532448000000 |
| EndTime |
integer |
No |
The end time of the historical data to retrieve, formatted as a UNIX timestamp in milliseconds. This parameter is optional. The default value is the current time. The time precision for statistics is hours. The time is rounded up to the nearest hour, and the interval is open. For example, if the start time is 11:12:20 and the end time is 11:45:50, the aligned input time range is [11:00:00, 12:00:00), which means greater than or equal to 11:00:00 and less than 12:00:00. |
1532707199000 |
| MediaType |
string |
No |
The media type. Default value: Audio. Valid values: Audio, Chat, and Video. |
VIDEO |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
943D8EF3-3321-471F-A104-51C96FCA94D6 |
| Data |
object |
The data. |
|
| Inbound |
object |
The inbound data. |
|
| AverageRingTime |
number |
The average ring time in seconds. Calculation formula: TotalRingTime/CallsRinged. |
0 |
| CallsVoicemail |
integer |
The number of calls transferred to the voice mail. The count increases by 1 when a call enters the voice mail module configured in the IVR. |
0 |
| MaxAbandonedInIVRTime |
integer |
The maximum IVR abandonment time in seconds. IVR abandonment is defined as the customer hanging up during IVR interaction, excluding hang-ups during queuing and hang-ups during agent ringing after the call is assigned to an agent. |
100 |
| CallsHandled |
integer |
The number of handled calls, which is the number of calls answered by agents. If a call is answered by multiple agents, it is counted only once. |
0 |
| CallsIVRException |
integer |
The number of calls with IVR exceptions. The count increases by 1 when the IVR enters a hang-up cause node and the hang-up cause is set to failure to transfer to an agent. |
0 |
| CallsAbandonedInIVR |
integer |
The number of calls abandoned in the IVR, which is the number of calls where the customer hangs up during the IVR process after entering the IVR flow. The determination is based on the hang-up cause in the call details being IVR abandonment. |
0 |
| MaxWorkTime |
integer |
The maximum after-call work time in seconds. |
0 |
| TotalHoldTime |
integer |
The total call hold time in seconds. |
0 |
| MaxAbandonTime |
integer |
The maximum abandonment time in seconds. Abandonment is defined as the customer hanging up after the call enters the IVR and before an agent answers. |
0 |
| AverageAbandonTime |
number |
The average abandonment time in seconds. Calculation formula: TotalAbandonTime/CallsAbandoned. |
0 |
| CallsRinged |
integer |
The number of calls that triggered agent ringing. If a call is assigned to multiple agents and triggers ringing, it is counted only once. |
0 |
| CallsQueuingFailed |
integer |
The number of queuing failures, which is the number of calls where the customer hangs up during the queuing phase after entering the queue. |
0 |
| TotalRingTime |
integer |
The total ring time in seconds. |
0 |
| AbandonRate |
number |
The abandonment rate. Calculation formula: CallsAbandoned/CallsOffered. The result may exceed 100% in some cases because abandonment and assignment events may fall into different time ranges. |
0 |
| TotalTalkTime |
integer |
The total talk time in seconds. |
0 |
| MaxAbandonedInRingTime |
integer |
The maximum ring abandonment time in seconds. Ring abandonment is defined as the customer hanging up while the agent is ringing after the call is assigned to the agent. |
0 |
| CallsBlindTransferred |
integer |
The number of blind transfers, which is the number of calls where a blind transfer occurs. If multiple transfers are initiated for a single call, it is counted only once. |
0 |
| AverageAbandonedInIVRTime |
number |
The average IVR abandonment time in seconds. Calculation formula: TotalAbandonedInIVRTime/CallsAbandonedInIVR. |
0 |
| AverageAbandonedInQueueTime |
number |
The average queue abandonment time in seconds. Calculation formula: TotalAbandonedInQueueTime/CallsAbandonedInQueue. |
0 |
| MaxWaitTime |
integer |
The maximum wait time in seconds. |
0 |
| AverageTalkTime |
number |
The average talk time in seconds. Calculation formula: TotalTalkTime/CallsHandled. |
0 |
| CallsAttendedTransferred |
integer |
The number of attended transfers, which is the number of calls where an attended transfer occurs. If multiple transfers are initiated for a single call, it is counted only once. |
0 |
| TotalAbandonedInIVRTime |
integer |
The total IVR abandonment time in seconds. |
0 |
| CallsQueuingOverflow |
integer |
The number of calls with queue overflow. Queue overflow occurs when the queue overflows while the call is queuing in the IVR. |
0 |
| CallsAbandonedInRing |
integer |
The number of ring abandonments, which is the number of calls where the customer hangs up during agent ringing. |
0 |
| TotalAbandonedInRingTime |
integer |
The total ring abandonment time in seconds. |
0 |
| TotalWorkTime |
integer |
The total after-call work time in seconds. |
0 |
| AverageWaitTime |
number |
The average wait time, which is the average time a caller waits before an agent answers. Calculation formula: TotalWaitTime/CallsHandled. |
0 |
| AverageWorkTime |
number |
The average after-call work time in seconds. Calculation formula: TotalWorkTime/CallsHandled. |
0 |
| CallsQueued |
integer |
The number of calls that entered the queue. If a call enters the queue multiple times, it is counted only once. |
0 |
| AverageAbandonedInRingTime |
number |
The average ring abandonment time in seconds. Calculation formula: TotalAbandonedInRingTime/CallsAbandonedInRing. |
0 |
| SatisfactionIndex |
number |
The satisfaction index, which is the average value of the satisfaction rating digits. |
0 |
| CallsAbandoned |
integer |
The number of abandoned calls. Calculation formula: CallsAbandonedInIVR + CallsAbandonedInQueue + CallsAbandonedInRing. |
0 |
| MaxAbandonedInQueueTime |
integer |
The maximum queue abandonment time in seconds. |
0 |
| CallsAbandonedInVoiceNavigator |
integer |
The number of calls abandoned in the intelligent navigation module. |
0 |
| TotalWaitTime |
integer |
The total wait time in seconds. |
0 |
| MaxTalkTime |
integer |
The maximum talk time in seconds. |
0 |
| MaxRingTime |
integer |
The maximum ring time in seconds. |
0 |
| TotalAbandonTime |
integer |
The total abandonment time in seconds. |
0 |
| CallsOffered |
integer |
The number of inbound calls to the Cloud Call Center. |
0 |
| CallsQueuingTimeout |
integer |
The number of calls that timed out during the queuing phase. |
0 |
| ServiceLevel20 |
number |
The 20-second service level, which is the number of calls with a wait time of 20 seconds or less divided by CallsQueued. |
0 |
| MaxHoldTime |
integer |
The maximum call hold time in seconds. |
0 |
| CallsForwardToOutsideNumber |
integer |
The number of calls forwarded to an external number. |
0 |
| SatisfactionRate |
number |
The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses. |
0 |
| CallsHold |
integer |
The number of held calls, which is the number of calls placed on hold. If a call is placed on hold multiple times, it is counted only once. |
0 |
| SatisfactionSurveysOffered |
integer |
The number of satisfaction surveys offered. |
0 |
| HandleRate |
number |
The handle rate. Calculation formula: CallsHandled/CallsOffered. The result may exceed 100% in some cases because handle and assignment events may fall into different time ranges. |
0 |
| SatisfactionSurveysResponded |
integer |
The number of satisfaction survey responses. |
0 |
| AverageHoldTime |
number |
The average call hold time in seconds. Calculation formula: TotalHoldTime/CallsHold. |
0 |
| CallsAbandonedInQueue |
integer |
The number of queue abandonments, which is the number of calls where the customer hangs up during the queuing phase after entering the queue. |
0 |
| TotalAbandonedInQueueTime |
integer |
The total queue abandonment time in seconds. |
0 |
| CallsCausedIVRException |
integer |
The number of calls that caused IVR exceptions. |
0 |
| CallsToVoicemail |
integer |
The number of calls that entered the voice mail. |
3 |
| ServiceLevel15 |
number |
The 15-second service level. |
0.78 |
| ServiceLevel30 |
number |
The 30-second service level. |
0.9 |
| TotalMessagesSent |
integer |
The total number of messages sent in chat sessions. |
12 |
| TotalMessagesSentByAgent |
integer |
The total number of messages sent by agents in chat sessions. |
8 |
| TotalMessagesSentByCustomer |
integer |
The total number of messages sent by customers in chat sessions. |
4 |
| AverageFirstResponseTime |
number |
The average first response time in chat sessions in seconds. |
12 |
| AccessChannelTypeDetailList |
array<object> |
The statistical data for each channel. |
|
|
object |
The statistical data for a channel. |
||
| AccessChannelType |
string |
The channel type. |
Web |
| CallsOffered |
integer |
The number of assigned sessions. |
5 |
| AverageResponseTime |
number |
The average response time in chat sessions. |
15 |
| Outbound |
object |
The outbound metrics. |
|
| AverageRingTime |
number |
The average ring time in seconds. Calculation formula: TotalRingTime/CallsRinged. |
0 |
| CallsDialed |
integer |
The number of dialed calls. |
0 |
| CallsAnswered |
integer |
The number of answered calls. |
0 |
| TotalWorkTime |
integer |
The total after-call work time in seconds. |
0 |
| MaxWorkTime |
integer |
The maximum after-call work time in seconds. |
0 |
| TotalDialingTime |
integer |
The total dialing time in seconds. |
0 |
| TotalHoldTime |
integer |
The total call hold time in seconds. |
0 |
| AverageWorkTime |
number |
The average after-call work time in seconds. Formula: TotalWorkTime/CallsDialed. |
0 |
| SatisfactionIndex |
number |
The satisfaction index, which is the average value of the satisfaction rating digits. |
0 |
| CallsRinged |
integer |
The number of calls that rang on agents. If a single call is routed to multiple agents and causes their phones to ring, it is counted as one call. |
0 |
| TotalRingTime |
integer |
The total ring time in seconds. |
0 |
| MaxTalkTime |
integer |
The maximum talk time in seconds. |
0 |
| MaxRingTime |
integer |
The maximum ring time in seconds. |
0 |
| TotalTalkTime |
integer |
The total talk time in seconds. |
0 |
| MaxDialingTime |
integer |
The maximum dialing time in seconds. |
0 |
| CallsBlindTransferred |
integer |
The number of blind transfers, which is the number of calls where a blind transfer occurs. If multiple transfers are initiated for a single call, it is counted only once. |
0 |
| AnswerRate |
number |
The answer rate. Formula: CallsAnswered/CallsDialed. The result may exceed 100% in some cases because answered events and response events may fall into different time ranges. |
0 |
| MaxHoldTime |
integer |
The maximum call hold time in seconds. |
0 |
| AverageTalkTime |
number |
The average talk time in seconds. Formula: TotalTalkTime/CallsAnswered. |
0 |
| SatisfactionRate |
number |
The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses. |
0 |
| CallsAttendedTransferred |
integer |
The number of attended transfers, which is the number of calls where an attended transfer occurs. If multiple transfers are initiated for a single call, it is counted only once. |
0 |
| CallsHold |
integer |
The number of held calls, which is the number of calls placed on hold. If a call is placed on hold multiple times, it is counted only once. |
0 |
| SatisfactionSurveysOffered |
integer |
The number of satisfaction surveys offered. |
0 |
| SatisfactionSurveysResponded |
integer |
The number of satisfaction survey responses. |
0 |
| AverageHoldTime |
number |
The average call hold time in seconds. Calculation formula: TotalHoldTime/CallsHold. |
0 |
| AverageDialingTime |
number |
The average dialing time in seconds. Formula: TotalDialingTime/CallsDialed. |
0 |
| Overall |
object |
The overall metrics. |
|
| TotalTalkTime |
integer |
The total talk time in seconds. |
0 |
| TotalLoggedInTime |
integer |
The total logged-in time in seconds. This does not include break time. |
0 |
| OccupancyRate |
number |
The agent occupancy rate. Formula: (TotalworkTime + TotalTalkTime) / TotalLoggedInTime. |
0 |
| TotalWorkTime |
integer |
The total after-call work time in seconds. |
0 |
| MaxHoldTime |
integer |
The maximum call hold time in seconds. |
0 |
| MaxWorkTime |
integer |
The maximum after-call work time in seconds. |
0 |
| AverageBreakTime |
number |
The average break time in seconds. Formula: TotalBreakTime/number of breaks. The number of breaks is not a metric returned by the API. |
0 |
| TotalHoldTime |
integer |
The total hold time in seconds. |
0 |
| SatisfactionRate |
number |
The satisfaction rate. Calculation formula: Number of satisfied ratings / Number of satisfaction survey responses. |
0 |
| MaxBreakTime |
integer |
The maximum break time in seconds. |
0 |
| AverageWorkTime |
number |
The average after-call work time in seconds. Formula: TotalWorkTime/TotalCalls. |
0 |
| AverageTalkTime |
number |
The average talk time in seconds. Formula: TotalTalkTime/(CallsAnswered+CallsHandled). |
0 |
| SatisfactionIndex |
number |
The satisfaction index, which is the average value of the satisfaction rating digits. |
0 |
| SatisfactionSurveysOffered |
integer |
The number of satisfaction surveys offered. |
0 |
| SatisfactionSurveysResponded |
integer |
The number of satisfaction survey responses. |
0 |
| MaxReadyTime |
integer |
The maximum ready time in seconds. |
0 |
| AverageReadyTime |
number |
The average ready time in seconds. Formula: TotalReadyTime/number of ready states. The number of ready states is not currently exposed by the API. |
0 |
| AverageHoldTime |
number |
The average call hold time in seconds. Formula: TotalHoldTime/(inbound CallsHold + outbound CallsHold). |
0 |
| TotalReadyTime |
integer |
The total ready time in seconds. |
0 |
| TotalBreakTime |
integer |
The total break time in seconds. |
0 |
| MaxTalkTime |
integer |
The maximum talk time in seconds. |
0 |
| TotalCalls |
integer |
The total number of calls. Formula: CallsOffered + CallsDialed. |
0 |
| MaxLoggedInAgents |
integer |
The maximum number of agents logged in simultaneously within this time range. |
102 |
| Internal |
object |
The internal call metrics. |
|
| CallsDialed |
integer |
The number of dialed calls. |
100 |
| CallsAnswered |
integer |
The number of answered calls. |
100 |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "943D8EF3-3321-471F-A104-51C96FCA94D6",
"Data": {
"Inbound": {
"AverageRingTime": 0,
"CallsVoicemail": 0,
"MaxAbandonedInIVRTime": 100,
"CallsHandled": 0,
"CallsIVRException": 0,
"CallsAbandonedInIVR": 0,
"MaxWorkTime": 0,
"TotalHoldTime": 0,
"MaxAbandonTime": 0,
"AverageAbandonTime": 0,
"CallsRinged": 0,
"CallsQueuingFailed": 0,
"TotalRingTime": 0,
"AbandonRate": 0,
"TotalTalkTime": 0,
"MaxAbandonedInRingTime": 0,
"CallsBlindTransferred": 0,
"AverageAbandonedInIVRTime": 0,
"AverageAbandonedInQueueTime": 0,
"MaxWaitTime": 0,
"AverageTalkTime": 0,
"CallsAttendedTransferred": 0,
"TotalAbandonedInIVRTime": 0,
"CallsQueuingOverflow": 0,
"CallsAbandonedInRing": 0,
"TotalAbandonedInRingTime": 0,
"TotalWorkTime": 0,
"AverageWaitTime": 0,
"AverageWorkTime": 0,
"CallsQueued": 0,
"AverageAbandonedInRingTime": 0,
"SatisfactionIndex": 0,
"CallsAbandoned": 0,
"MaxAbandonedInQueueTime": 0,
"CallsAbandonedInVoiceNavigator": 0,
"TotalWaitTime": 0,
"MaxTalkTime": 0,
"MaxRingTime": 0,
"TotalAbandonTime": 0,
"CallsOffered": 0,
"CallsQueuingTimeout": 0,
"ServiceLevel20": 0,
"MaxHoldTime": 0,
"CallsForwardToOutsideNumber": 0,
"SatisfactionRate": 0,
"CallsHold": 0,
"SatisfactionSurveysOffered": 0,
"HandleRate": 0,
"SatisfactionSurveysResponded": 0,
"AverageHoldTime": 0,
"CallsAbandonedInQueue": 0,
"TotalAbandonedInQueueTime": 0,
"CallsCausedIVRException": 0,
"CallsToVoicemail": 3,
"ServiceLevel15": 0.78,
"ServiceLevel30": 0.9,
"TotalMessagesSent": 12,
"TotalMessagesSentByAgent": 8,
"TotalMessagesSentByCustomer": 4,
"AverageFirstResponseTime": 12,
"AccessChannelTypeDetailList": [
{
"AccessChannelType": "Web",
"CallsOffered": 5
}
],
"AverageResponseTime": 15
},
"Outbound": {
"AverageRingTime": 0,
"CallsDialed": 0,
"CallsAnswered": 0,
"TotalWorkTime": 0,
"MaxWorkTime": 0,
"TotalDialingTime": 0,
"TotalHoldTime": 0,
"AverageWorkTime": 0,
"SatisfactionIndex": 0,
"CallsRinged": 0,
"TotalRingTime": 0,
"MaxTalkTime": 0,
"MaxRingTime": 0,
"TotalTalkTime": 0,
"MaxDialingTime": 0,
"CallsBlindTransferred": 0,
"AnswerRate": 0,
"MaxHoldTime": 0,
"AverageTalkTime": 0,
"SatisfactionRate": 0,
"CallsAttendedTransferred": 0,
"CallsHold": 0,
"SatisfactionSurveysOffered": 0,
"SatisfactionSurveysResponded": 0,
"AverageHoldTime": 0,
"AverageDialingTime": 0
},
"Overall": {
"TotalTalkTime": 0,
"TotalLoggedInTime": 0,
"OccupancyRate": 0,
"TotalWorkTime": 0,
"MaxHoldTime": 0,
"MaxWorkTime": 0,
"AverageBreakTime": 0,
"TotalHoldTime": 0,
"SatisfactionRate": 0,
"MaxBreakTime": 0,
"AverageWorkTime": 0,
"AverageTalkTime": 0,
"SatisfactionIndex": 0,
"SatisfactionSurveysOffered": 0,
"SatisfactionSurveysResponded": 0,
"MaxReadyTime": 0,
"AverageReadyTime": 0,
"AverageHoldTime": 0,
"TotalReadyTime": 0,
"TotalBreakTime": 0,
"MaxTalkTime": 0,
"TotalCalls": 0,
"MaxLoggedInAgents": 102
},
"Internal": {
"CallsDialed": 100,
"CallsAnswered": 100
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Blank | The parameter %s may not be null or blank. | The parameter cannot be null or a string that contains whitespace characters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.