调用GetHotlineServiceStatistics接口获取热线监控下服务统计量。
QPS限制
- 单用户调用频率:100次/秒。
- API频率:100次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetHotlineServiceStatistics |
系统规定参数。取值:GetHotlineServiceStatistics。 |
InstanceId | String | 是 | ccc_xp_pre-cn-*** |
AICCS实例ID。 您可以在智能联络中心控制台左侧导航栏的实例管理中获取。 |
StartDate | Long | 否 | 1615083365000 |
开始日期时间戳。单位:毫秒。 |
EndDate | Long | 否 | 1617761765000 |
结束日期时间戳。单位:毫秒。 |
PageSize | Integer | 否 | 10 |
每页大小。取值大于0,默认值:20。 |
CurrentPage | Integer | 否 | 1 |
当前页。取值大于0,默认值:1。 |
AgentIds | Array of Long | 否 | 111 |
坐席ID。 |
DepIds | Array of Long | 否 | 100 |
部门ID。 |
GroupIds | Array of Long | 否 | 123 |
技能组ID。 |
TimeLatitudeType | String | 否 | minute |
时间纬度类型分组查询。取值:
|
ExistAgentGrouping | Boolean | 否 | true |
是否根据坐席分组查询。取值:
|
ExistDepartmentGrouping | Boolean | 否 | true |
是否根据部门分组查询。取值:
|
ExistSkillGroupGrouping | Boolean | 否 | true |
是否根据技能组分组查询。取值:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | EE338D98-9BD3-4413-B165 |
请求ID。 |
Message | String | message |
状态描述。 |
Code | String | 200 |
状态编码。返回200表示请求成功。 |
Success | String | true |
调用接口是否成功。取值:
|
Data | Object |
数据列表。 |
|
PageNum | Integer | 1 |
当前页数。 |
PageSize | Integer | 2000 |
每页大小。 |
TotalNum | Integer | 4 |
总记录数。 |
Rows | String | {"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} |
信息为List<Map>类型的JSON字符串。 |
返回参数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:租户名称
示例
请求示例
http(s)://aiccs.aliyuncs.com/?Action=GetHotlineServiceStatistics
&InstanceId=ccc_xp_pre-cn-***
&StartDate=1615083365000
&EndDate=1617761765000
&PageSize=10
&CurrentPage=1
&AgentIds=[111]
&DepIds=[100]
&GroupIds=[123]
&TimeLatitudeType=minute
&ExistAgentGrouping=true
&ExistDepartmentGrouping=true
&ExistSkillGroupGrouping=true
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetHotlineServiceStatisticsResponse>
<RequestId>EE338D98-9BD3-4413-B165</RequestId>
<Message>xxxx</Message>
<Code>200</Code>
<Success>true</Success>
<Data>
<PageNum>1</PageNum>
<PageSize>2000</PageSize>
<TotalNum>4</TotalNum>
<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}</Rows>
</Data>
</GetHotlineServiceStatisticsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "EE338D98-9BD3-4413-B165",
"Message" : "xxxx",
"Code" : "200",
"Success" : "true",
"Data" : {
"PageNum" : 1,
"PageSize" : 2000,
"TotalNum" : 4,
"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}"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | SystemError | A system error occurred. Please contact the administrator. | 系统错误,请联系管理员! |
访问错误中心查看更多错误码。