调用GetHistoricalInstanceReport获取指定实例的历史数据报表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID。 | ccc-test |
StartTime | long | 否 | 获取的历史数据的起始时间,格式为 Unix 时间戳,单位毫秒,非必填,默认为当天的 0 时,最早为当前时间往前 180 天,统计的时间精度为小时,向前取整,闭区间。 | 1532448000000 |
EndTime | long | 否 | 获取的历史数据的终止时间,格式为 Unix 时间戳,单位毫秒,非必填,默认为当前时间,统计的时间精度为小时,向后取整,开区间。例如:开始时间为 11:12:20,结束时间为 11:45:50,则对齐后的入参时间范围为[11:00:00,12:00:00) ,即大于等于 11 点,小于 12 点。 | 1532707199000 |
MediaType | string | 否 | 媒体类型,默认是语音(Audio), 其他可选参数包括 Chat 和 Video. | VIDEO |
返回参数
示例
正常返回示例
JSON
格式
{
"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
}
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Parameter.Blank | The parameter %s may not be null or blank. | 该参数不能为null或含有空白符的字符串。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-22 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |