You need to enable JavaScript to run this app.
导航

PCLogDetailSearchList

最近更新时间2023.12.26 19:24:26

首次发布时间2022.11.15 20:38:47

调用PCLogDetailSearchList查看日志详情。

请求参数

Query

参数

类型

是否必选

示例值

描述

Action

String

PCCrashDetailSearch

请求名称。

Version

String

2022-10-28

请求版本。

Body

参数

类型

是否必选

示例值

描述

aid

i64

12345

App ID。

start_time

i64

1660293215000

开始时间,单位ms。

end_time

i64

1660300415000

结束时间,单位ms。

region

string

cn

查询区域。

reverse

boolean

false

排序方式,默认false为倒序。

log_type

array of string

["launch"]

日志类型。

  • pc_crash
  • launch
  • flexible
  • log

device_id

string

123

设备ID。和用户ID只需要2选1。

target_uniq_id

string

""

LastKey ID,用于续查。

user_id

string

123

用户ID。

is_cts_time

boolean

true

是否是客户端时间。

返回参数

参数

类型

示例值

描述

data

object of data

-

返回数据。

errmsg

string

""

错误信息。

errno

i32

200

错误码。

data

参数

类型

示例值

描述

data

array of string

-

日志列表, 最大1000条。

last_key

object of last_key

-

最后一个log的keyid。

last_key

参数

类型

示例值

描述

start_time

i32

0

续查查询开始时间,目前为0。

uniq_id

string

""

续查ID。

请求示例

POST /?Action=PCCrashDetailSearch&Version=2022-10-28 
{
    "aid": 12345,
    "start_time": 1660293215000,
    "end_time": 1660300415000,
    "log_type": [
        "launch"
    ],
    "device_id": "123",
    "region": "cn",
    "is_cts_time": false,
    "user_id": "123",
    "reverse": true,
    "target_uniq_id": ""
}

返回示例

正常返回示例

{
    "data": {
        "data": "[{{aid: \"12345\", app_minor_version: \"\", app_version: \"\", build_id: \"\", channel: \"\", city: \"北京\",…}}]",
        "last_key": {
            "start_time": 203,
            "uniq_id": ""
        }
    },
    "errmsg": "",
    "errno": 200
}

异常返回示例

{
    "ResponseMetadata": {
        "RequestId": "2018****22D30",
        "Action": "PCCrashDetailSearch",
        "Version": "2022-10-28",
        "Service": "***",
        "Region": "cn-north-1",
        "Error": {
            "Code": "200000",
            "Message": "参数异常"
        }
    }
}