
# 查询知识报表信息
#### 接口方法
设置成"POST"。
#### URL
https://IP:PORT/oifde/rest/api/queryKnowledgeReport
#### 请求说明
表1请求体参数 
| 参数名称      | 数据类型   | 参数位置 | 必选/可选 | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
|:---|:---|:---|:---|:---|
| type      | String | body | True  | 查询类型 - day: 按天查询,特定日期的报表数据  - month: 按月查询,以timestamp往后一天作为结束时间,三十日内的报表数据   |
| tenantId  | String | body | True  | 租户ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| timestamp | long   | body | False | 查询日期的毫秒时间戳 如果不传,仅返回租间问答、意图和语聊的数目。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| authToken | String | body | True  | 认证token。 请参见[C3 智能助手平台接口鉴权方式](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0004.html#ZH-CN_TOPIC_0000002513073307)。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
   
#### 响应说明
| 参数名称                 | 数据类型                | 参数位置 | 必选/可选 | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|:---|:---|:---|:---|:---|
| tenantId             | int                 | body | True  | 租户ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| recordTime           | String              | body | True  | 查询日期的毫秒时间戳，使用UTC时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| type                 | long                | body | True  | 查询类型 - day: 按天查询,特定日期的报表数据  - month: 按月查询,以timestamp往后一天作为结束时间,三十日内的报表数据   |
| qaCount              | int                 | body | True  | 租户问答总数 当前租间,配置的问答总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| intentCount          | int                 | body | True  | 租户意图总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| talkCount            | int                 | body | True  | 租户语聊总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| effectiveQaCount     | int                 | body | True  | 命中的问答个数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| effectiveIntentCount | int                 | body | True  | 命中的意图个数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| effectiveTalkCount   | int                 | body | True  | 命中的语聊个数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| effectiveQaSum       | int                 | body | True  | 命中的问答总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| effectiveIntentSum   | int                 | body | True  | 命中的意图总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| effectiveTalkSum     | int                 | body | True  | 命中的语聊总数                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| qaList               | List\<HotspotData\> | body | True  | Top10的问答列表                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| intentList           | List\<HotspotData\> | body | True  | Top10的意图列表                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
   
表2HotspotData 热点机器人知识数据 
| Name  | Mandatory | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|:---|:---|:---|:---|
| name  | True      | String | 热点知识数据的名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| count | True      | int    | 热点知识数据的命中个数 - Top10的问答列表,表示问答命中的个数  - Top10的意图列表,表示意图命中的个数   |
   
#### 报文样例
- 请求样例
  ```
  {
      "tenantId":"202104237142",
      "timestamp":1630684800000,
      "type":"month",
      "authToken":"0kQl*******************PHFhoyDy"
  }
  ```
  
- 响应样例
  ```
  {
      "tenantId": "202104237142",
      "recordTime": 1630684800000,
      "type": "month",
      "qaCount": 78,
      "intentCount": 42,
      "talkCount": 45,
      "effectiveQaCount": 1,
      "effectiveIntentCount": 7,
      "effectiveTalkCount": 6,
      "effectiveQaSum": 1,
      "effectiveIntentSum": 17,
      "effectiveTalkSum": 22,
      "qaList": [
          {
              "name": "我们在测试",
              "count": 1
          }
      ],
      "intentList": [
          {
              "name": "话费查询(话费查询)",
              "count": 7
          },
          {
              "name": "套餐降级(套餐降级)",
              "count": 3
          },
          {
              "name": "无需服务(无需服务)",
              "count": 2
          },
          {
              "name": "是否(是否)",
              "count": 2
          },
          {
              "name": "Taxa de chamada(Taxa de chamada)",
              "count": 1
          },
          {
              "name": "公积金业务(公积金)",
              "count": 1
          },
          {
              "name": "公积金问题(公积金问题)",
              "count": 1
          }
      ]
  }
  ```
  
 
