调用GetSeatInformation获取在线监控下部门坐席服务能力数据。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String GetSeatInformation

系统规定参数。取值:GetSeatInformation

InstanceId String ccc_xp_pre-cn-***

AICCS实例ID。可在智能联络中心控制台>实例管理中获取。

startDate Long 1615083365000

开始时间戳。单位:毫秒。

endDate Long 1617761765000

结束时间戳。单位:毫秒。

pageSize Integer 10

每页大小。默认值:10

currentPage Integer 1

当前页。默认值:1

depIds Array of Long 111

部门ID。

existDepartmentGrouping Boolean true

是否根据部门分组查询。取值:

  • true
  • false

返回数据

名称 类型 示例值 描述
RequestId String EE338D98-9BD3-4413-B165

请求ID。

Message String xxxx

状态码描述。

Code String 200

状态码。返回200表示请求成功。

Success String true

接口调用是否成功。

Data Object

数据列表。

PageNum Integer 1

当前页数。

PageSize Integer 2000

页大小。

TotalNum Integer 4

总记录数。

Rowr String {"tenant_id":"905","tenant_name":"非单元测试化BU","department_id":"-1","svc_avai_capacity":7,"svc_current_capacity":0,"department_name":"-1","svc_online_cnt":3,"svc_ask_offline_servicer_num":0,"date_id":"20210401","svc_max_capacity":7,"svc_rest_cnt":0,"current_speci_ability_num":0,"servicer_rest_cnt":122,"max_speci_ability_num":3,"svc_offline_cnt":0,"svc_no_clinet_cnt":3,"svc_ask_rest_servicer_num":0}

信息为List<Map>类型的JSON字符串。

svc_no_clinet_cnt: 空闲座席数

svc_rest_cnt: 小休座席数

svc_online_cnt: 在线中的座席

svc_avai_capacity: 当前空余服务能力

svc_ask_rest_servicer_num: 申请小休的座席

svc_ask_offline_servicer_num: 申请离线的座席

svc_offline_cnt: 离线座席

svc_max_capacity: 最大服务能力

svc_current_capacity: 当前最大服务能力

max_speci_ability_num: 最大的鲸吞加1能力服务量

current_speci_ability_num: 当前的鲸吞加1能力服务量

special_ability_num: 当前可分配的鲸吞+1的服务量

servicer_rest_cnt: 小休次数

示例

请求示例

http(s)://aiccs.aliyuncs.com/?InstanceId=ccc_xp_pre-cn-***
&startDate=1615083365000
&endDate=1617761765000
&pageSize=10
&currentPage=1
&depIds=[111]
&existDepartmentGrouping=true
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetSeatInformationResponse>
<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>
    <Rowr>
        <0>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>7</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>3</svc_online_cnt>
            <svc_ask_offline_servicer_num>0</svc_ask_offline_servicer_num>
            <date_id>20210401</date_id>
            <svc_max_capacity>7</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>122</servicer_rest_cnt>
            <max_speci_ability_num>3</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>3</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </0>
        <1>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>1</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>1</svc_online_cnt>
            <svc_ask_offline_servicer_num>0</svc_ask_offline_servicer_num>
            <date_id>20210331</date_id>
            <svc_max_capacity>1</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>74</servicer_rest_cnt>
            <max_speci_ability_num>1</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>1</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </1>
        <2>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>1</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>2</svc_online_cnt>
            <svc_ask_offline_servicer_num>1</svc_ask_offline_servicer_num>
            <date_id>20210327</date_id>
            <svc_max_capacity>1</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>48</servicer_rest_cnt>
            <max_speci_ability_num>1</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>1</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </2>
        <3>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>12</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>4</svc_online_cnt>
            <svc_ask_offline_servicer_num>0</svc_ask_offline_servicer_num>
            <date_id>20210330</date_id>
            <svc_max_capacity>12</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>22</servicer_rest_cnt>
            <max_speci_ability_num>4</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>4</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </3>
        <4>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>1</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>1</svc_online_cnt>
            <svc_ask_offline_servicer_num>0</svc_ask_offline_servicer_num>
            <date_id>20210328</date_id>
            <svc_max_capacity>1</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>96</servicer_rest_cnt>
            <max_speci_ability_num>1</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>1</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </4>
        <5>
            <tenant_id>905</tenant_id>
            <tenant_name>非单元测试化BU</tenant_name>
            <department_id>-1</department_id>
            <svc_avai_capacity>1</svc_avai_capacity>
            <svc_current_capacity>0</svc_current_capacity>
            <department_name>-1</department_name>
            <svc_online_cnt>1</svc_online_cnt>
            <svc_ask_offline_servicer_num>0</svc_ask_offline_servicer_num>
            <date_id>20210329</date_id>
            <svc_max_capacity>1</svc_max_capacity>
            <svc_rest_cnt>0</svc_rest_cnt>
            <current_speci_ability_num>0</current_speci_ability_num>
            <servicer_rest_cnt>144</servicer_rest_cnt>
            <max_speci_ability_num>1</max_speci_ability_num>
            <svc_offline_cnt>0</svc_offline_cnt>
            <svc_no_clinet_cnt>1</svc_no_clinet_cnt>
            <svc_ask_rest_servicer_num>0</svc_ask_rest_servicer_num>
        </5>
    </Rowr>
</Data>
</GetSeatInformationResponse>

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,
    "Rowr" : [ [ {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 7,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 3,
      "svc_ask_offline_servicer_num" : 0,
      "date_id" : "20210401",
      "svc_max_capacity" : 7,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 122,
      "max_speci_ability_num" : 3,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 3,
      "svc_ask_rest_servicer_num" : 0
    }, {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 1,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 1,
      "svc_ask_offline_servicer_num" : 0,
      "date_id" : "20210331",
      "svc_max_capacity" : 1,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 74,
      "max_speci_ability_num" : 1,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 1,
      "svc_ask_rest_servicer_num" : 0
    }, {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 1,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 2,
      "svc_ask_offline_servicer_num" : 1,
      "date_id" : "20210327",
      "svc_max_capacity" : 1,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 48,
      "max_speci_ability_num" : 1,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 1,
      "svc_ask_rest_servicer_num" : 0
    }, {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 12,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 4,
      "svc_ask_offline_servicer_num" : 0,
      "date_id" : "20210330",
      "svc_max_capacity" : 12,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 22,
      "max_speci_ability_num" : 4,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 4,
      "svc_ask_rest_servicer_num" : 0
    }, {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 1,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 1,
      "svc_ask_offline_servicer_num" : 0,
      "date_id" : "20210328",
      "svc_max_capacity" : 1,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 96,
      "max_speci_ability_num" : 1,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 1,
      "svc_ask_rest_servicer_num" : 0
    }, {
      "tenant_id" : "905",
      "tenant_name" : "非单元测试化BU",
      "department_id" : "-1",
      "svc_avai_capacity" : 1,
      "svc_current_capacity" : 0,
      "department_name" : "-1",
      "svc_online_cnt" : 1,
      "svc_ask_offline_servicer_num" : 0,
      "date_id" : "20210329",
      "svc_max_capacity" : 1,
      "svc_rest_cnt" : 0,
      "current_speci_ability_num" : 0,
      "servicer_rest_cnt" : 144,
      "max_speci_ability_num" : 1,
      "svc_offline_cnt" : 0,
      "svc_no_clinet_cnt" : 1,
      "svc_ask_rest_servicer_num" : 0
    } ] ]
  }
}

错误码

访问错误中心查看更多错误码。