跳到主要内容

操作分析

操作列表

POST /adhoc/query

Body 请求参数

{
"datasource": "BRS_WECHAT_APPLET",
"timePeriod": 360,
"endTime": "",
"dimensions": [
"path",
"operaName"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
}
],
"metrics": [
"actionCount"
],
"orderByExprs": "actionCount desc",
"limit": 100,
"render": "object"
}

请求参数

名称位置类型必选说明
bodybodyobjectnone

返回示例

[
{
"actionCount": {
"format": "27",
"label": "Operation Count",
"unit": "",
"value": 27
},
"path": "/pages/index/index",
"operaName": "endSetData",
"pathFocus": true,
"pathAlias": "",
"operaAlias": ""
}
]

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» actionCountobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» pathstringtruenonenone
» operaNamestringtruenonenone
» pathFocusbooleantruenonenone
» pathAliasstringtruenonenone
» operaAliasstringtruenonenone

操作/操作Trace

操作trace详情

POST /abnormal/action/trace

Body 请求参数

{
"timePeriod": 10081,
"endTime": "",
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
}
],
"datasource": "MP_ACTION_TRACE",
"metrics": [],
"dimensions": [
"*"
],
"orderByExprs": "timestamp desc",
"render": "object"
}

请求参数

名称位置类型必选说明
traceIdquerystringnone
bodybodyobjectnone

返回示例

{
"code": 200,
"msg": "success",
"data": {
"mpId": 10,
"uid": "testUser",
"sid": "31f5f4d1-358d-406a-988c-9642c42e193a",
"userId": "testUser",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"ip": "114.242.217.98",
"countryId": 48,
"regionId": 4811,
"cityId": 481101,
"countyId": 48110105,
"carrierId": 16,
"countryName": "China",
"regionName": "Beijing",
"cityName": "Beijing",
"countyName": "朝阳区",
"carrierName": "China Unicom",
"system": "iOS 10.0.1",
"deviceType": "iPhone 12/13 (Pro)",
"wechatVersion": "8.0.5",
"sdkVersion": "3.6.0",
"v": "V4.2.2",
"releaseName": "V4.2.2",
"networkType": "wifi",
"connectType": "wifi",
"screenHeight": "844",
"screenWidth": "390",
"timestamp": "2025-03-19 14:23",
"traceId": "694d30134acd4697ab1e523e9d48eb23",
"path": "/pages/cptest/cptest",
"operaName": "sendToServer",
"traceData": "{\"id\":6,\"type\":\"event\",\"name\":\"sendToServer\",\"count\":0,\"start\":1742365305925,\"end\":1742365326164,\"duration\":20239,\"requests\":[{\"id\":0,\"type\":\"request\",\"name\":null,\"count\":0,\"start\":1742365305925,\"end\":1742365316070,\"duration\":10145,\"requests\":[{\"id\":0,\"type\":\"request\",\"name\":null,\"count\":0,\"start\":1742365316070,\"end\":1742365326163,\"duration\":10093,\"requests\":null,\"apis\":null,\"data\":null,\"operaName\":\"sendToServer\",\"path\":\"/pages/cptest/cptest\",\"prevPath\":\"/pages/about/about\",\"normalizeBeforePath\":\"pages/cptest/cptest\",\"normalizeBeforeFromPath\":\"pages/about/about\",\"traceId\":\"b5d1f14b08b640d6a09dadac17937ab9\",\"spanId\":\"c4174ae55d214fcc\",\"parentSpanId\":\"9f8332a40f684167\",\"url\":\"https://reportalpha1.tingyun.com/demo-server/api/moviesDetail\",\"method\":\"GET\",\"cbTime\":0,\"send\":0,\"rec\":685,\"statusCode\":504,\"s_id\":null,\"s_name\":null,\"s_du\":null,\"s_qu\":null,\"t_id\":null,\"custom\":null,\"serverId\":0,\"serverInstanceId\":0,\"failMessage\":null,\"status\":null,\"requestFiltered\":0,\"ct\":\"text/html\",\"apms\":{},\"eventFail\":false,\"requestId\":6}],\"apis\":null,\"data\":null,\"operaName\":\"sendToServer\",\"path\":\"/pages/cptest/cptest\",\"prevPath\":\"/pages/about/about\",\"normalizeBeforePath\":\"pages/cptest/cptest\",\"normalizeBeforeFromPath\":\"pages/about/about\",\"traceId\":\"3a9d7f6ea07040959ee6ce5b10b30b7a\",\"spanId\":\"9f8332a40f684167\",\"parentSpanId\":\"845625dc49e843cb\",\"url\":\"https://reportalpha1.tingyun.com/demo-server/api/index?city=undefined&counts=undefined&start=undefined\",\"method\":\"GET\",\"cbTime\":5,\"send\":0,\"rec\":734,\"statusCode\":504,\"s_id\":null,\"s_name\":null,\"s_du\":null,\"s_qu\":null,\"t_id\":null,\"custom\":null,\"serverId\":0,\"serverInstanceId\":0,\"failMessage\":null,\"status\":null,\"requestFiltered\":0,\"ct\":\"text/html\",\"apms\":{},\"eventFail\":true,\"requestId\":3}],\"apis\":null,\"data\":{\"target\":{\"offsetLeft\":0,\"offsetTop\":949,\"id\":\"sendrequest\",\"x\":236.3000030517578,\"y\":977.75},\"dataset\":{\"targetName\":\"点击发送server请求\",\"methodName\":\"sendToServer\"}},\"operaName\":null,\"path\":\"/pages/cptest/cptest\",\"prevPath\":\"/pages/about/about\",\"normalizeBeforePath\":\"pages/cptest/cptest\",\"normalizeBeforeFromPath\":\"pages/about/about\",\"traceId\":\"694d30134acd4697ab1e523e9d48eb23\",\"spanId\":\"845625dc49e843cb\",\"parentSpanId\":\"a3c9043c229d4b4c\",\"info\":{\"windowHeight\":\"671\",\"routeTrack\":[{\"timestamp\":1742364944680,\"route\":\"pages/cptest/cptest\"},{\"timestamp\":1742364948907,\"route\":\"pages/index/index\"},{\"timestamp\":1742364953157,\"route\":\"pages/about/about\"},{\"timestamp\":1742364955279,\"route\":\"pages/cptest/cptest\"},{\"timestamp\":1742365178921,\"route\":\"pages/index/index\"},{\"timestamp\":1742365184140,\"route\":\"pages/cptest/cptest\"},{\"timestamp\":1742365285774,\"route\":\"pages/index/index\"},{\"timestamp\":1742365298106,\"route\":\"pages/about/about\"},{\"timestamp\":1742365298933,\"route\":\"pages/cptest/cptest\"},{\"timestamp\":1742365318328,\"route\":\"pages/login1/login1\"}],\"ua\":\"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2412050 MicroMessenger/8.0.5 Language/zh_CN webview/\",\"windowWidth\":\"390\"}}",
"operaTime": 20239,
"operaRequestTime": 20238,
"operaServerTime": 0,
"operaRequestCount": 2,
"operaServerCount": 0
},
"status": 200
}

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenonenone
» msgstringtruenonenone
» dataobjecttruenonenone
»» mpIdintegertruenonenone
»» uidstringtruenonenone
»» sidstringtruenonenone
»» userIdstringtruenonenone
»» sessionIdstringtruenonenone
»» ipstringtruenonenone
»» countryIdintegertruenonenone
»» regionIdintegertruenonenone
»» cityIdintegertruenonenone
»» countyIdintegertruenonenone
»» carrierIdintegertruenonenone
»» countryNamestringtruenonenone
»» regionNamestringtruenonenone
»» cityNamestringtruenonenone
»» countyNamestringtruenonenone
»» carrierNamestringtruenonenone
»» systemstringtruenonenone
»» deviceTypestringtruenonenone
»» wechatVersionstringtruenonenone
»» sdkVersionstringtruenonenone
»» vstringtruenonenone
»» releaseNamestringtruenonenone
»» networkTypestringtruenonenone
»» connectTypestringtruenonenone
»» screenHeightstringtruenonenone
»» screenWidthstringtruenonenone
»» timestampstringtruenonenone
»» traceIdstringtruenonenone
»» pathstringtruenonenone
»» operaNamestringtruenonenone
»» traceDatastringtruenonenone
»» operaTimeintegertruenonenone
»» operaRequestTimeintegertruenonenone
»» operaServerTimeintegertruenonenone
»» operaRequestCountintegertruenonenone
»» operaServerCountintegertruenonenone
» statusintegertruenonenone

失败操作Trace

POST /adhoc/query

Body 请求参数

{
"datasource": "MP_ACTION_TRACE",
"timePeriod": 10080,
"endTime": "",
"dimensions": [
"timestamp",
"traceId",
"operaName",
"path",
"userId",
"sessionId",
"ip",
"actionDur",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType",
"actionDur",
"operaStatus"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "failCount",
"value": [
0
],
"operator": "!="
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "list"
}

请求参数

名称位置类型必选说明
bodybodyobjectnone

返回示例

[
{
"connectType": "wifi",
"regionName": "Beijing",
"cityId": 481101,
"countryId": 48,
"operaAlias": "",
"path": "/pages/cptest/cptest",
"cityName": "Beijing",
"carrierName": "China Unicom",
"countyId": 48110105,
"operaStatus": 2,
"timestamp": 1742365419000,
"countyName": "朝阳区",
"traceId": "694d30134acd4697ab1e523e9d48eb23",
"deviceType": "iPhone 12/13 (Pro)",
"ip": "114.242.217.98",
"pathFocus": true,
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"userId": "testUser",
"system": "iOS 10.0.1",
"regionId": 4811,
"operaName": "sendToServer",
"actionDur": 20239,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"pathAlias": ""
}
]

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» connectTypestringtruenonenone
» regionNamestringtruenonenone
» cityIdintegertruenonenone
» countryIdintegertruenonenone
» operaAliasstringtruenonenone
» pathstringtruenonenone
» cityNamestringtruenonenone
» carrierNamestringtruenonenone
» countyIdintegertruenonenone
» operaStatusintegertruenonenone
» timestampintegertruenonenone
» countyNamestringtruenonenone
» traceIdstringtruenonenone
» deviceTypestringtruenonenone
» ipstringtruenonenone
» pathFocusbooleantruenonenone
» sessionIdstringtruenonenone
» userIdstringtruenonenone
» systemstringtruenonenone
» regionIdintegertruenonenone
» operaNamestringtruenonenone
» actionDurintegertruenonenone
» wechatVersionstringtruenonenone
» countryNamestringtruenonenone
» carrierIdintegertruenonenone
» pathAliasstringtruenonenone

慢操作Trace

POST /adhoc/query

Body 请求参数

{
"datasource": "MP_ACTION_TRACE",
"timePeriod": 10080,
"endTime": "",
"dimensions": [
"timestamp",
"traceId",
"operaName",
"path",
"userId",
"sessionId",
"ip",
"actionDur",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType",
"actionDur"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "slowCount",
"value": [
0
],
"operator": "!="
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "list"
}

请求参数

名称位置类型必选说明
bodybodyobjectnone

返回示例

[
{
"connectType": "wifi",
"regionName": "Beijing",
"cityId": 481101,
"countryId": 48,
"operaAlias": "",
"path": "/pages/cptest/cptest",
"cityName": "Beijing",
"carrierName": "China Unicom",
"countyId": 48110105,
"timestamp": 1742365419000,
"countyName": "朝阳区",
"traceId": "694d30134acd4697ab1e523e9d48eb23",
"deviceType": "iPhone 12/13 (Pro)",
"ip": "114.242.217.98",
"pathFocus": true,
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"userId": "testUser",
"system": "iOS 10.0.1",
"regionId": 4811,
"operaName": "sendToServer",
"actionDur": 20239,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"pathAlias": ""
}
]

返回结果

状态码状态码含义说明数据模型
200OKnoneInline

返回数据结构

状态码 200

名称类型必选约束中文名说明
» connectTypestringtruenonenone
» regionNamestringtruenonenone
» cityIdintegertruenonenone
» countryIdintegertruenonenone
» operaAliasstringtruenonenone
» pathstringtruenonenone
» cityNamestringtruenonenone
» carrierNamestringtruenonenone
» countyIdintegertruenonenone
» timestampintegertruenonenone
» countyNamestringtruenonenone
» traceIdstringtruenonenone
» deviceTypestringtruenonenone
» ipstringtruenonenone
» pathFocusbooleantruenonenone
» sessionIdstringtruenonenone
» userIdstringtruenonenone
» systemstringtruenonenone
» regionIdintegertruenonenone
» operaNamestringtruenonenone
» actionDurintegertruenonenone
» wechatVersionstringtruenonenone
» countryNamestringtruenonenone
» carrierIdintegertruenonenone
» pathAliasstringtruenonenone