Agent 日志

获取应用图表数据

获取应用的图表统计数据,包括用户数据、对话数据、应用数据的时序统计

post/proApi/core/app/logs/getChartData

Request

  • Base URL: https://app.wenwen-ai.com/api
  • URL: https://app.wenwen-ai.com/api/proApi/core/app/logs/getChartData
  • Auth: none declared

Request body

appIdstring required

应用 ID

dateStartstring required

开始日期

dateEndstring required

结束日期

sourcestring[]

对话来源筛选

offsetnumber required

时区偏移量

userTimespan'day' | 'week' | 'month' | 'quarter' required

用户数据时间跨度

chatTimespan'day' | 'week' | 'month' | 'quarter' required

对话数据时间跨度

appTimespan'day' | 'week' | 'month' | 'quarter' required

应用数据时间跨度

Example request

{
  "appId": "68ad85a7463006c963799a05",
  "dateStart": "2024-01-01T00:00:00.000Z",
  "dateEnd": "2024-12-31T23:59:59.999Z",
  "source": [
    "api",
    "online"
  ],
  "offset": 1,
  "userTimespan": "day",
  "chatTimespan": "day",
  "appTimespan": "day"
}

Response

成功获取应用图表数据

Example response

{
  "userData": [
    {
      "timestamp": 1704067200,
      "summary": {
        "userCount": 100,
        "newUserCount": 30,
        "retentionUserCount": 70,
        "points": 1500,
        "sourceCountMap": {
          "api": 50,
          "web": 30,
          "mobile": 20
        }
      }
    }
  ],
  "chatData": [
    {
      "timestamp": 1704067200,
      "summary": {
        "chatItemCount": 500,
        "chatCount": 100,
        "errorCount": 5,
        "points": 800
      }
    }
  ],
  "appData": [
    {
      "timestamp": 1704067200,
      "summary": {
        "goodFeedBackCount": 25,
        "badFeedBackCount": 3,
        "chatCount": 100,
        "totalResponseTime": 120000
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.