查询指定任务的实时统计信息
场景描述
查询指定任务的实时统计信息,返回实时统计指标。
注意:该接口需要配套部署isales服务模块。
接口方法
设置成“POST”。该接口仅支持POST方法,不支持PUT、GET和DELTE等方法。
请求URL
https://ip:port/rest/cmsapp/v1/openapi/fromisales/realstatistic
其中,公有云环境请联系管理员获取,ip为CC-CMS服务器地址,port为CC-CMS服务器的HTTPS端口号。
非公有云环境如果配置了NSLB服务,ip请填写NSLB的服务器地址,port为CC-CMS服务在NSLB映射的HTTPS端口号。
请求说明
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | Content-Type | String | True | 固定填 application/json; charset=UTF-8。 |
| 2 | Authorization | String | True | 生成方式参见C2 监控/系统外呼/话单/知识库类接口鉴权方式。 |
| 参数名 | 数据类型 | 是否必选 | 说明 |
|---|---|---|---|
| ccId | int | False | 呼叫中心编号,取值范围:1~65535
|
| vdn | int | True | 虚拟呼叫中心编号。取值范围:1~5000 |
| taskId | int | True | 任务ID。最大长度30 |
响应消息
| 参数名 | 数据类型 | 说明 |
|---|---|---|
| resultCode | string | 查询结果。取值如下:
失败的原因说明请参见错误码参考。 |
| resultDesc | array | 查询成功后,返回结果信息的对象数组。 该接口的响应消息体参数说明请参考表4 |
| 参数名 | 数据类型 | 说明 |
|---|---|---|
| totalCount | int | 日外呼客户量。 |
| succCount | int | 成功呼叫客户数(接通量)。 |
| failCount | int | 截至查询时,未成功呼叫客户数。 |
| succRate | String | 呼叫客户成功率(接通率)。 |
| compCount | int | 完成呼叫客户数。 |
| waitCount | int | 等待呼叫客户数。 |
| execCount | int | 执行中呼叫客户数。 |
| compRate | String | 呼叫客户完成率。 |
| dialCount | int | 拨打号码总次数。 |
| dialSuccCount | int | 拨打号码成功次数。 |
| dialSuccRate | String | 拨打号码成功率。 |
样例报文
- 请求头:
Content-Type: application/json;charset=UTF-8 Authorization: ******************
- 请求参数:
{ "ccId": "89", "vdn":92, "taskId":"1122104910" } - 响应参数:
{ "resultCode": "0100000", "resultDesc": { "compCount": "4", "failCount": "2", "compRate": "50%", "execCount": "0", "succCount": "2", "succRate": "50%", "totalCount": "4", "waitCount": "0" }