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

PCFileList

最近更新时间2024.05.07 20:48:38

首次发布时间2023.11.24 16:46:34

调用PCFileList查看日志列表。

请求说明

  • 请求方式:POST
  • 请求地址:/?Action=PCFileList&Version=2022-10-28
ServiceName : apmplus_openapi
Region : cn-beijing
X-App-Ids : xxx
Content-Type : application/json

请求参数

Query

参数类型是否必选示例值描述
ActionStringPCFileList接口名称。当前 API 的名称为 PCFileList
VersionString2022-10-28接口版本。当前 API 的版本为 2022-10-28

Body

参数类型是否必选示例值描述
app_idLong123456App ID。
device_idStringxxxxx设备ID。
user_idString-用户ID。

log_type

String

-

日志类型。

  • Native Crash:Native Crash
  • status:进程状态
  • event:自定义事件
  • txt:自定义日志
start_timeLong1700621639开始时间。
end_timeLong1700708039结束时间。
crash_timeLong-崩溃时间点。单位为秒。
osStringpc系统。
regionStringcn地域。

type

String

did

根据哪种类型查找设备。

  • did
  • uid

scene

String

-

上报方式。

  • upload:客户端主动上报
  • crash:随崩溃上报。

merge

Long

0

日志文件是否合并上报。

  • 0:合并
  • 1:不合并

返回参数

参数类型示例值描述
dataObject of FileList-返回数据。
errmsgString-错误信息。成功为空。
errnoInteger200错误码。成功为0。

FileList

参数类型示例值描述
countLong1日志文件的个数。
filesArray of FileInfo-日志文件的详细信息。

FileInfo

参数类型示例值描述
nameString2023-11-23-09-12-01.log.zip日志文件的名称。
sizeLong22日志文件的大小。单位为B。

scene

String

upload

上报方式。

  • upload:客户端主动上报
  • crash:随崩溃上报。
tos_urlStringfile/2023-11-23-09-12-01.log.zip对象存储桶中的日志文件名称。
end_timeLong1700704421结束时间。
log_typeStringtxt日志类型。
start_timeLong1700497594开始时间。

请求示例

POST /?Action=PCFileList&Version=2022-10-28
{
    "app_id": 123456,
    "region": "cn",
    "type": "did",
    "os": "pc",
    "crash_time": 0,
    "start_time": 1700621639,
    "end_time": 1700708039,
    "merge": 0,
    "device_id": "xxxxx"
}

返回示例

{
    "data": {
        "files": [
            {
                "start_time": 1700497594,
                "end_time": 1700704421,
                "log_type": "txt",
                "name": "2023-11-23-09-12-01.log.zip",
                "scene": "upload",
                "size": 22,
                "tos_url": "file/2023-11-23-09-12-01.log.zip"
            }
        ],
        "count": 1
    },
    "errmsg": "",
    "errno": 200
}