跳到主要内容

日志回捞

1.创建任务

Endpoint:

Method: POST
Type: RAW
URL: {{host}}/log-analyze/upsertTask

Body:

{

"mobileAppId": 8843,
"name": "ceui",
"sceneId": 7,
"pluginId": 10,
"expireTime": "2022-07-23 18:40",
"startTime": "2022-07-23 18:40",
"endTime": "2022-07-23 18:40",
"uploadType": 1,
"targetType": 0,
"email": "8843",
"description": "8843",
"status": 0,
"items": [
{
"taskId": 8843,
"mobileAppId": 8843,
"targetId": "1"
},
{
"taskId": 8843,
"mobileAppId": 8843,
"targetId": "2"
},
{
"taskId": 8843,
"mobileAppId": 8843,
"targetId": "3"
}
]
}

2.修改状态

Endpoint:

Method: POST
Type: RAW
URL: {{host}}/log-analyze/changeStatus

Query params:

KeyValue
mobileAppId7787
taskId1,2
status-1

3.任务列表

Endpoint:

Method: POST
Type: RAW
URL: {{host}}/log-analyze/getTaskList

Body:

{

"mobileAppId": 8843,
"name": "ce",
"status": "all"
}

4.导出模板

Endpoint:

Method: POST
Type: RAW
URL: {{host}}/config/key-url/exportTemplate

Query params:

KeyValue
modulelogTask
mobileAppId123

5.日志收集列表

Endpoint:

Method: POST
Type: RAW
URL: {{host}}/log-analyze/getLogCollectionList

Query params:

KeyValue
modulelogTask
mobileAppId123

Body:

{
"mobileAppId":"7543",
"deviceId":"",
"userId":"",
"taskId":"398"
}