获取热线监控下服务统计量。支持实例、时间纬度、坐席、部门、技能组分组查询。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
AICCS 实例 ID。 您可以在智能联络中心控制台左侧导航栏的实例管理中获取。 |
ccc_xp_pre-cn-*** |
| StartDate |
integer |
否 |
开始日期时间戳。单位:毫秒。 |
1615083365000 |
| EndDate |
integer |
否 |
结束日期时间戳。单位:毫秒。 |
1617761765000 |
| PageSize |
integer |
否 |
每页大小。取值大于 0,默认值:20。 |
10 |
| CurrentPage |
integer |
否 |
当前页。取值大于 0,默认值:1。 |
1 |
| AgentIds |
array |
否 |
坐席 ID 列表。 |
|
|
integer |
否 |
坐席 ID。 可调用 GetAgent 接口,查看返回参数的 AgentId,即坐席 ID。 |
111 |
|
| DepIds |
array |
否 |
部门 ID 列表。 |
|
|
integer |
否 |
部门 ID。 可调用 GetAllDepartment 接口,查看返回参数的 DepartmentId,即部门 ID。 |
100 |
|
| GroupIds |
array |
否 |
技能组 ID 列表。 |
|
|
integer |
否 |
技能组 ID。 可调用 QuerySkillGroups 接口,查看返回参数的 SkillGroupId,即技能组 ID。 |
123 |
|
| TimeLatitudeType |
string |
否 |
时间纬度类型分组查询。取值:
|
minute |
| ExistAgentGrouping |
boolean |
否 |
是否根据坐席分组查询。取值:
|
true |
| ExistDepartmentGrouping |
boolean |
否 |
是否根据部门分组查询。取值:
|
true |
| ExistSkillGroupGrouping |
boolean |
否 |
是否根据技能组分组查询。取值:
|
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
EE338D98-9BD3-4413-B165 |
| Message |
string |
状态描述。 |
message |
| Data |
object |
数据列表。 |
|
| TotalNum |
integer |
总记录数。 |
4 |
| PageNum |
integer |
当前页数。 |
1 |
| PageSize |
integer |
每页大小。 |
2000 |
| Rows |
string |
信息为 List |
{"tenant_id":"905","n_resttype_now":0,"tenant_name":"非单元测试化BU","n_resttype1_now":0,"group_name":"-1","department_id":"-1","department_name":"-1","n_resttype98_now":0,"n_online_now":0,"date_id":"20210401","n_resttype3_now":0,"n_resttype5_now":0,"n_busy_now":0,"n_resttype2_now":0,"group_id":"-1","n_idle_now":0,"n_resttype4_now":0,"n_ack_now":0,"n_resttype99_now":0} |
| Code |
string |
状态编码。返回 200 表示请求成功。 |
200 |
| Success |
string |
调用接口是否成功。取值:
|
true |
返回参数 Rows 参数说明:
n_idle_now:当前空闲坐席数
n_resttype_now:当前小休坐席数
n_resttype1_now:当前普通小休坐席数
n_resttype2_now:当前就餐小休坐席数
n_resttype3_now:当前会议小休坐席数
n_resttype4_now:当前辅导小休坐席数
n_resttype5_now:当前培训小休坐席数
n_resttype98_now:当前强制小休坐席数
n_resttype99_now:当前签入小休坐席数
n_ack_now:当前后处理坐席数
n_online_now:当前在线坐席数
n_busy_now:通话坐席数
group_name:技能组名称
group_id:技能组 ID
department_id:部门 ID
department_name:部门名称
date_id:日期
tenant_id:租户 ID
tenant_name:租户名称
示例
正常返回示例
JSON格式
{
"RequestId": "EE338D98-9BD3-4413-B165",
"Message": "message",
"Data": {
"TotalNum": 4,
"PageNum": 1,
"PageSize": 2000,
"Rows": "{\"tenant_id\":\"905\",\"n_resttype_now\":0,\"tenant_name\":\"非单元测试化BU\",\"n_resttype1_now\":0,\"group_name\":\"-1\",\"department_id\":\"-1\",\"department_name\":\"-1\",\"n_resttype98_now\":0,\"n_online_now\":0,\"date_id\":\"20210401\",\"n_resttype3_now\":0,\"n_resttype5_now\":0,\"n_busy_now\":0,\"n_resttype2_now\":0,\"group_id\":\"-1\",\"n_idle_now\":0,\"n_resttype4_now\":0,\"n_ack_now\":0,\"n_resttype99_now\":0}"
},
"Code": "200",
"Success": "true"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | SystemError | A system error occurred. Please contact the administrator. | 系统错误,请联系管理员! |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。