Operational Analysis
Action List
POST /adhoc/query
Body request parameter
{
"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"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
Return Example
[
{
"actionCount ": {
"format": "27 ",
"label": "Operation Count ",
"unit ": "",
"value": 27
},
"path": "/pages/index/index ",
"operaName": "endSetData ",
"pathFocus": true
"pathAlias ": "",
"operaAlias ": ""
}
]
Return Results
| Status Code | Meaning of status code | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return data structure
Status Code 200
| Name | Type | Required | Constraints | Chinese name | Description |
|---|---|---|---|---|---|
| » actionCount | object | true | none | none | |
| »» format | string | true | none | none | |
| »» label | string | true | none | none | |
| »» unit | string | true | none | none | |
| »» value | integer | true | none | none | |
| » path | string | true | none | none | |
| » operaName | string | true | none | none | |
| » pathFocus | boolean | true | none | none | |
| » pathAlias | string | true | none | none | |
| » operaAlias | string | true | none | none |
Operation/Operation Trace
Operation trace details
POST /abnormal/action/trace
Body request parameter
{
"timePeriod": 10081
"endTime ": "",
"filters ": [
{
"name": "mpId ",
"value ": [
10
],
"operator": "IN"
}
],
"datasource": "MP_ACTION_TRACE ",
"metrics": []
"dimensions ": [
"*"
],
"orderByExprs": "timestamp desc ",
"render": "object"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| traceId | query | string | No | none |
| body | body | object | No | none |
Return Example
{
"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": "Chaoyang District",
"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\":\"Click Send server Request\",\" 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
}
Return Results
| Status Code | Meaning of status code | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return data structure
Status Code 200
| Name | Type | Required | Constraints | Chinese name | Description |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» mpId | integer | true | none | none | |
| »» uid | string | true | none | none | |
| »» sid | string | true | none | none | |
| »» userId | string | true | none | none | |
| »» sessionId | string | true | none | none | |
| »» ip | string | true | none | none | |
| »» countryId | integer | true | none | none | |
| »» regionId | integer | true | none | none | |
| »» cityId | integer | true | none | none | |
| »» countyId | integer | true | none | none | |
| »» carrierId | integer | true | none | none | |
| »» countryName | string | true | none | none | |
| »» regionName | string | true | none | none | |
| »» cityName | string | true | none | none | |
| »» countyName | string | true | none | none | |
| »» carrierName | string | true | none | none | |
| »» system | string | true | none | none | |
| »» deviceType | string | true | none | none | |
| »» wechatVersion | string | true | none | none | |
| »» sdkVersion | string | true | none | none | |
| »» v | string | true | none | none | |
| »» releaseName | string | true | none | none | |
| »» networkType | string | true | none | none | |
| »» connectType | string | true | none | none | |
| »» screenHeight | string | true | none | none | |
| »» screenWidth | string | true | none | none | |
| »» timestamp | string | true | none | none | |
| »» traceId | string | true | none | none | |
| »» path | string | true | none | none | |
| »» operaName | string | true | none | none | |
| »» traceData | string | true | none | none | |
| »» operaTime | integer | true | none | none | |
| »» operaRequestTime | integer | true | none | none | |
| »» operaServerTime | integer | true | none | none | |
| »» operaRequestCount | integer | true | none | none | |
| »» operaServerCount | integer | true | none | none | |
| » status | integer | true | none | none |
Failed action Trace
POST /adhoc/query
Body request parameter
{
"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"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
Return Example
[
{
"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": "Chaoyang District",
"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 ": ""
}
]
Return Results
| Status Code | Meaning of status code | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return data structure
Status Code 200
| Name | Type | Required | Constraints | Chinese name | Description |
|---|---|---|---|---|---|
| » connectType | string | true | none | none | |
| » regionName | string | true | none | none | |
| » cityId | integer | true | none | none | |
| » countryId | integer | true | none | none | |
| » operaAlias | string | true | none | none | |
| » path | string | true | none | none | |
| » cityName | string | true | none | none | |
| » carrierName | string | true | none | none | |
| » countyId | integer | true | none | none | |
| » operaStatus | integer | true | none | none | |
| » timestamp | integer | true | none | none | |
| » countyName | string | true | none | none | |
| » traceId | string | true | none | none | |
| » deviceType | string | true | none | none | |
| » ip | string | true | none | none | |
| » pathFocus | boolean | true | none | none | |
| » sessionId | string | true | none | none | |
| » userId | string | true | none | none | |
| » system | string | true | none | none | |
| » regionId | integer | true | none | none | |
| » operaName | string | true | none | none | |
| » actionDur | integer | true | none | none | |
| » wechatVersion | string | true | none | none | |
| » countryName | string | true | none | none | |
| » carrierId | integer | true | none | none | |
| » pathAlias | string | true | none | none |
Slow operation Trace
POST /adhoc/query
Body request parameter
{
"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"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
Return Example
[
{
"connectType": "wifi ",
"regionName": "Beijing ",
"cityId": 481101
"countryId": 48
"operaAlias ": "",
"path": "/pages/cptest/cptest ",
"cityName": "Beijing ",
"carrierName": "China Unicom ",
"countyId": 48110105
"timestamp": 1742365419000
"countyName": "Chaoyang District",
"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 ": ""
}
]
Return Results
| Status Code | Meaning of status code | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return data structure
Status Code 200
| Name | Type | Required | Constraints | Chinese name | Description |
|---|---|---|---|---|---|
| » connectType | string | true | none | none | |
| » regionName | string | true | none | none | |
| » cityId | integer | true | none | none | |
| » countryId | integer | true | none | none | |
| » operaAlias | string | true | none | none | |
| » path | string | true | none | none | |
| » cityName | string | true | none | none | |
| » carrierName | string | true | none | none | |
| » countyId | integer | true | none | none | |
| » timestamp | integer | true | none | none | |
| » countyName | string | true | none | none | |
| » traceId | string | true | none | none | |
| » deviceType | string | true | none | none | |
| » ip | string | true | none | none | |
| » pathFocus | boolean | true | none | none | |
| » sessionId | string | true | none | none | |
| » userId | string | true | none | none | |
| » system | string | true | none | none | |
| » regionId | integer | true | none | none | |
| » operaName | string | true | none | none | |
| » actionDur | integer | true | none | none | |
| » wechatVersion | string | true | none | none | |
| » countryName | string | true | none | none | |
| » carrierId | integer | true | none | none | |
| » pathAlias | string | true | none | none |