客服状态时长统计
请求URL
GET /apiv2/kchat/stats/StateStats.json
Query参数
| Name | Required | Type | Comment |
|---|---|---|---|
| start | 是 | date | 传递格式:2017-7-10 |
| end | 是 | date | 传递格式:2017-7-11 |
返回示例
{
"agents": [
{
"agent_id": 122, // 客服 id
"onlineTotal": 1938.3, // 在线总时长(分钟)
"busyTotal": 0, // 忙碌总时长(分钟)
"onlineAverage": 1938.3, // 平均在线时长(分钟)
"busyAverage": 0// 平均忙碌时长(分钟)
},
...
],
"summary": {
"onlineTotal": 2105, // 在线总时长(分钟)
"busyTotal": 0, // 忙碌总时长(分钟)
"onlineAverage": 701.7, // 平均在线时长(分钟)
"busyAverage": 0// 平均忙碌时长(分钟)
}
}