获取指定实例下指定坐席的分段统计报表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AgentId | string | 是 | 坐席 ID。 | agent@ccc-test |
StartTime | long | 否 | 开始时间戳,默认为当天的 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 点。 | 1558443508000 |
InstanceId | string | 是 | 实例 ID。 | ccc-test |
Interval | string | 否 | 分段统计类型,非必填,默认为 Daily(按天汇总)。 枚举值:
| Daily |
SkillGroupId | string | 是 | 技能组 ID。 | skg-default@ccc-test |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "2778FA12-EDD6-42AA-9B15-AF855072E5E5",
"Data": [
{
"StatsTime": 1620291600000,
"Inbound": {
"AverageRingTime": 11,
"CallsHandled": 7,
"TotalWorkTime": 85,
"CallsAttendedTransferOut": 10,
"MaxWorkTime": 100,
"TotalHoldTime": 100,
"AverageWorkTime": 100,
"CallsBlindTransferIn": 100,
"SatisfactionIndex": 100,
"CallsRinged": 100,
"CallsAttendedTransferIn": 100,
"CallsBlindTransferOut": 100,
"TotalRingTime": 100,
"MaxTalkTime": 100,
"MaxRingTime": 100,
"TotalTalkTime": 100,
"CallsOffered": 100,
"MaxHoldTime": 100,
"AverageTalkTime": 100,
"SatisfactionRate": 0.5,
"CallsHold": 100,
"SatisfactionSurveysOffered": 100,
"HandleRate": 0.5,
"SatisfactionSurveysResponded": 100,
"AverageHoldTime": 100,
"AverageFirstResponseTime": 6,
"AverageResponseTime": 18,
"TotalMessagesSent": 12,
"TotalMessagesSentByAgent": 8,
"TotalMessagesSentByCustomer": 5
},
"Outbound": {
"AverageRingTime": 100,
"CallsDialed": 100,
"CallsAnswered": 100,
"TotalWorkTime": 100,
"CallsAttendedTransferOut": 100,
"MaxWorkTime": 100,
"TotalDialingTime": 100,
"TotalHoldTime": 100,
"AverageWorkTime": 100,
"CallsBlindTransferIn": 100,
"SatisfactionIndex": 100,
"CallsRinged": 100,
"CallsAttendedTransferIn": 100,
"CallsBlindTransferOut": 100,
"TotalRingTime": 100,
"MaxTalkTime": 0,
"MaxRingTime": 100,
"TotalTalkTime": 100,
"MaxDialingTime": 100,
"AnswerRate": 0.5,
"MaxHoldTime": 100,
"AverageTalkTime": 100,
"SatisfactionRate": 100,
"CallsHold": 100,
"SatisfactionSurveysOffered": 100,
"SatisfactionSurveysResponded": 100,
"AverageHoldTime": 100,
"AverageDialingTime": 100
},
"Overall": {
"OccupancyRate": 0.4,
"TotalWorkTime": 100,
"MaxWorkTime": 100,
"TotalHoldTime": 100,
"AverageWorkTime": 100,
"MaxBreakTime": 100,
"SatisfactionIndex": 1.4,
"MaxReadyTime": 100,
"MaxTalkTime": 100,
"TotalReadyTime": 100,
"LastCheckOutTime": 1712548421000,
"TotalCalls": 100,
"TotalLoggedInTime": 100,
"TotalTalkTime": 100,
"MaxHoldTime": 100,
"AverageBreakTime": 100,
"AverageTalkTime": 100,
"SatisfactionRate": 100,
"SatisfactionSurveysOffered": 100,
"FirstCheckInTime": 100,
"SatisfactionSurveysResponded": 100,
"AverageHoldTime": 100,
"AverageReadyTime": 100,
"TotalBreakTime": 100,
"BreakCodeDetailList": [
{
"BreakCode": "开会",
"Count": 1,
"Duration": 100
}
],
"TotalOutboundScenarioTime": 100,
"TotalOutboundScenarioReadyTime": 100,
"TotalOutboundScenarioLoggedInTime": 100,
"TotalOffSiteLoggedInTime": "100",
"TotalOfficePhoneLoggedInTime": "100",
"TotalOnSiteLoggedInTime": "100",
"LastCheckoutTime": 100
},
"Internal": {
"TotalTalkTime": 100,
"AverageTalkTime": 100,
"MaxTalkTime": 100,
"CallsOffered": 100,
"CallsHandled": 100,
"CallsTalk": 100,
"CallsDialed": 100,
"CallsAnswered": 100,
"CallsTalked": 100
},
"Back2Back": {
"CallsDialed": 100,
"AnswerRate": 0.5,
"CallsAnswered": 100,
"AgentAnswerRate": 100,
"CallsCustomerHandled": 100,
"CustomerHandleRate": 100,
"TotalTalkTime": 100,
"MaxTalkTime": 100,
"AverageTalkTime": 100,
"TotalRingTime": 100,
"MaxRingTime": 100,
"AverageRingTime": 100,
"TotalCustomerRingTime": 100,
"MaxCustomerRingTime": 100,
"AverageCustomerRingTime": 100,
"AgentHandleRate": 1,
"CallsCustomerAnswered": 12,
"CustomerAnswerRate": 0.6,
"CallsAgentHandled": 5
}
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Parameter.Format | The format of parameter %s is invalid. %s | 该参数的格式不合法。 |
400 | Parameter.Blank | The parameter %s must not be null or empty. | 该参数不能为null值。 |
500 | InternalService.Common | An internal service error occurred. %s | 内部服务错误。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-22 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |