调用ListIntervalAgentReport获取指定实例下指定坐席的分段统计报表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AgentId | string | 是 | 坐席 ID。 | agent@ccc-test |
StartTime | long | 否 | 开始时间,格式为 Unix 时间戳,单位毫秒,非必填,默认为当天的 0 时,统计的时间精度为小时,向前取整,闭区间。 | 1532448000000 |
EndTime | long | 否 | 截止时间,格式为 Unix 时间戳,单位毫秒,非必填,默认是当前时间,如果 Interval 为 Daily,StartTime 和 EndTime 最大间隔是 180 天。如果 Interval 为 Hourly,最大间隔时间为 10 天。统计的时间精度为小时,向后取整,开区间。例如:开始时间为 11:12:20,结束时间为 11:45:50,则对齐后的入参时间范围为[11:00:00,12:00:00),即大于等于 11 点,小于 12 点。 | 1532707199000 |
InstanceId | string | 是 | 实例 ID。 | ccc-test |
Interval | string | 否 | 分段统计类型,非必填,默认为 Daily(按天汇总)。 枚举值:
| Hourly |
MediaType | string | 否 | 媒体类型,默认是语音(Audio), 其他可选参数包括 Chat 和 Video. | VIDEO |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "943D8EF3-3321-471F-A104-51C96FCA94D6",
"Data": [
{
"StatsTime": 1620291600000,
"Inbound": {
"AverageRingTime": 0,
"CallsHandled": 0,
"TotalWorkTime": 0,
"CallsAttendedTransferOut": 0,
"MaxWorkTime": 0,
"TotalHoldTime": 0,
"AverageWorkTime": 0,
"CallsBlindTransferIn": 0,
"SatisfactionIndex": 0,
"CallsRinged": 0,
"CallsAttendedTransferIn": 0,
"CallsBlindTransferOut": 0,
"TotalRingTime": 0,
"MaxTalkTime": 0,
"MaxRingTime": 0,
"TotalTalkTime": 0,
"CallsOffered": 0,
"MaxHoldTime": 0,
"AverageTalkTime": 0,
"SatisfactionRate": 0,
"CallsHold": 0,
"SatisfactionSurveysOffered": 0,
"HandleRate": 0,
"SatisfactionSurveysResponded": 0,
"AverageHoldTime": 0,
"AccessChannelTypeDetails": [
{
"AccessChannelType": "Web",
"CallsOffered": 2
}
],
"AverageFirstResponseTime": 8,
"AverageResponseTime": 10,
"ServiceLevel15": 0.6,
"TotalMessagesSent": 12,
"TotalMessagesSentByAgent": 10,
"TotalMessagesSentByCustomer": 2
},
"Outbound": {
"AverageRingTime": 0,
"CallsDialed": 5,
"CallsAnswered": 0,
"TotalWorkTime": 4,
"CallsAttendedTransferOut": 0,
"MaxWorkTime": 2,
"TotalDialingTime": 148,
"TotalHoldTime": 0,
"AverageWorkTime": 1,
"CallsBlindTransferIn": 0,
"SatisfactionIndex": 0,
"CallsRinged": 0,
"CallsAttendedTransferIn": 0,
"CallsBlindTransferOut": 0,
"TotalRingTime": 0,
"MaxTalkTime": 0,
"MaxRingTime": 0,
"TotalTalkTime": 0,
"MaxDialingTime": 60,
"AnswerRate": 0,
"MaxHoldTime": 0,
"AverageTalkTime": 0,
"SatisfactionRate": 0,
"CallsHold": 0,
"SatisfactionSurveysOffered": 0,
"SatisfactionSurveysResponded": 0,
"AverageHoldTime": 0,
"AverageDialingTime": 30
},
"Overall": {
"OccupancyRate": 0,
"TotalWorkTime": 4,
"MaxWorkTime": 2,
"TotalHoldTime": 0,
"AverageWorkTime": 1,
"MaxBreakTime": 1,
"SatisfactionIndex": 0,
"MaxReadyTime": 435,
"MaxTalkTime": 0,
"TotalReadyTime": 763,
"LastCheckoutTime": 0,
"LastCheckOutTime": 0,
"TotalCalls": 5,
"TotalLoggedInTime": 914,
"TotalTalkTime": 0,
"MaxHoldTime": 0,
"AverageBreakTime": 0,
"AverageTalkTime": 0,
"SatisfactionRate": 0,
"SatisfactionSurveysOffered": 0,
"SatisfactionSurveysResponded": 0,
"AverageHoldTime": 0,
"AverageReadyTime": 0,
"TotalBreakTime": 1,
"TotalOnSiteOnlineTime": 0,
"TotalOffSiteOnlineTime": 0,
"TotalOfficePhoneOnlineTime": 0,
"BreakCodeDetailList": [
{
"BreakCode": "会议",
"Count": 10,
"Duration": 100
}
],
"TotalOutboundScenarioTime": 0,
"TotalOutboundScenarioReadyTime": 100,
"FirstCheckInTime": 0,
"TotalOfficePhoneLoggedInTime": 100,
"TotalOffSiteLoggedInTime": 100,
"TotalOnSiteLoggedInTime": 100,
"TotalOutboundScenarioLoggedInTime": 100
},
"Back2Back": {
"CallsDialed": 100,
"AnswerRate": 0.5,
"CallsAnswered": 100,
"TotalTalkTime": 100,
"MaxTalkTime": 100,
"AverageTalkTime": 100,
"TotalRingTime": 100,
"MaxRingTime": 100,
"AverageRingTime": 100,
"TotalCustomerRingTime": 100,
"MaxCustomerRingTime": 100,
"AverageCustomerRingTime": 100,
"CallsAgentHandled": 12,
"AgentHandleRate": 1,
"CallsCustomerAnswered": 9,
"CustomerAnswerRate": 0.75
},
"Internal": {
"AverageTalkTime": 100,
"CallsAnswered": 100,
"CallsDialed": 100,
"CallsHandled": 100,
"CallsOffered": 100,
"CallsTalked": 80
}
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Parameter.Format | The format of parameter %s is invalid. %s | 该参数的格式不合法。 |
400 | Parameter.Blank | The parameter %s may not be null or blank. | 该参数不能为null或含有空白符的字符串。 |
500 | InternalService.Common | An internal service error occurred. %s | 内部服务错误。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-22 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-05-23 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |