请求分析
请求列表
POST /adhoc/query
Body 请求参数
{
"timePeriod": 360,
"endTime": "",
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
}
],
"datasource": "MP_PAGE_TRACE",
"metrics": [],
"dimensions": [
"timestamp",
"traceId",
"userId",
"sessionId",
"ip",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType",
"customTimingDur",
"loadDur"
],
"orderByExprs": "timestamp desc",
"groupBy": false,
"render": "object"
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
返回示例
[
{
"traceId": "cae9bf9e9f7e45b5a64d4594615861e5",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "f8c04247-a3cb-4dfc-8807-4f8de960cf2d",
"cityId": 481101,
"loadDur": 5305,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365553000,
"countyName": "朝阳区"
},
{
"traceId": "aee3014e0861444f98b8b6fca698bd29",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "f8c04247-a3cb-4dfc-8807-4f8de960cf2d",
"cityId": 481101,
"loadDur": 214,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365471000,
"countyName": "朝阳区"
},
{
"traceId": "d1900dc58ed74572876e21dc63f0a2df",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 53,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 52,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365419000,
"countyName": "朝阳区"
},
{
"traceId": "62315c69cd1f4dd48a2ee6045fbeaafa",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 0,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365318000,
"countyName": "朝阳区"
},
{
"traceId": "210eaa45dd9743c0b1798acc53464900",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 0,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365298000,
"countyName": "朝阳区"
},
{
"traceId": "c3d58b96f1d24228a5e29cb3e3776b6b",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 0,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365285000,
"countyName": "朝阳区"
},
{
"traceId": "8dde7217c94f4b9dae30886bd0049911",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 0,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365184000,
"countyName": "朝阳区"
},
{
"traceId": "1c01667324824c31b0fc9cc599edbb5d",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 0,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742365179000,
"countyName": "朝阳区"
},
{
"traceId": "9be18c5973fe45dea80691b0eac83c81",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 1110,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742364955000,
"countyName": "朝阳区"
},
{
"traceId": "18a2e94057344d7481d3603ace28f108",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 3683,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742364953000,
"countyName": "朝阳区"
},
{
"traceId": "60492c3cbf5249eeb41f8088a3b8dd0f",
"deviceType": "iPhone 12/13 (Pro)",
"customTimingDur": 0,
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"sessionId": "31f5f4d1-358d-406a-988c-9642c42e193a",
"cityId": 481101,
"loadDur": 339,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"timestamp": 1742364948000,
"countyName": "朝阳区"
}
]
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» traceId | string | true | none | none | |
» deviceType | string | true | none | none | |
» customTimingDur | integer | true | none | none | |
» connectType | string | true | none | none | |
» ip | string | true | none | none | |
» regionName | string | true | none | none | |
» sessionId | string | true | none | none | |
» cityId | integer | true | none | none | |
» loadDur | integer | true | none | none | |
» userId | string | true | none | none | |
» countryId | integer | true | none | none | |
» system | string | true | none | none | |
» cityName | string | true | none | none | |
» carrierName | string | true | none | none | |
» regionId | integer | true | none | none | |
» countyId | integer | true | none | none | |
» wechatVersion | string | true | none | none | |
» countryName | string | true | none | none | |
» carrierId | integer | true | none | none | |
» timestamp | integer | true | none | none | |
» countyName | string | true | none | none |
请求分析/HTTP Trace
错误请求
POST /adhoc/query
Body 请求参数
{
"datasource": "MP_HTTP_TRACE",
"timePeriod": 360,
"endTime": "",
"metrics": [],
"dimensions": [
"timestamp",
"url",
"userId",
"sessionId",
"ip",
"httpDur",
"httpServerTimingDur",
"httpCode",
"failMessage",
"bytesReceived",
"bytesSent",
"serverTrace",
"serverTraceId",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "errorCount",
"value": [
0
],
"operator": "!="
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "object"
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
返回示例
200 Response
[
{
"connectType": "string",
"httpServerTimingDur": 0,
"regionName": "string",
"httpDur": 0,
"cityId": 0,
"countryId": 0,
"cityName": "string",
"carrierName": "string",
"countyId": 0,
"httpCode": "string",
"timestamp": 0,
"countyName": "string",
"deviceType": "string",
"ip": "string",
"sessionId": "string",
"bytesSent": 0,
"userId": "string",
"url": "string",
"failMessage": "string",
"serverTrace": true,
"bytesReceived": 0,
"system": "string",
"regionId": 0,
"wechatVersion": "string",
"countryName": "string",
"carrierId": 0,
"serverTraceId": "string"
}
]
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» connectType | string | true | none | none | |
» httpServerTimingDur | integer | true | none | none | |
» regionName | string | true | none | none | |
» httpDur | integer | true | none | none | |
» cityId | integer | true | none | none | |
» countryId | integer | true | none | none | |
» cityName | string | true | none | none | |
» carrierName | string | true | none | none | |
» countyId | integer | true | none | none | |
» httpCode | string | true | none | none | |
» timestamp | integer | true | none | none | |
» countyName | string | true | none | none | |
» deviceType | string | true | none | none | |
» ip | string | true | none | none | |
» sessionId | string | true | none | none | |
» bytesSent | integer | true | none | none | |
» userId | string | true | none | none | |
» url | string | true | none | none | |
» failMessage | string | true | none | none | |
» serverTrace | boolean | true | none | none | |
» bytesReceived | integer | true | none | none | |
» system | string | true | none | none | |
» regionId | integer | true | none | none | |
» wechatVersion | string | true | none | none | |
» countryName | string | true | none | none | |
» carrierId | integer | true | none | none | |
» serverTraceId | string | true | none | none |
慢请求
POST /adhoc/query
Body 请求参数
{
"datasource": "MP_HTTP_TRACE",
"timePeriod": 360,
"endTime": "",
"metrics": [],
"dimensions": [
"timestamp",
"url",
"userId",
"sessionId",
"ip",
"httpDur",
"httpServerTimingDur",
"httpCode",
"failMessage",
"bytesReceived",
"bytesSent",
"serverTrace",
"serverTraceId",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "slowCount",
"value": [
0
],
"operator": "!="
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "object"
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
返回示例
[
{
"connectType": "wifi",
"httpServerTimingDur": 0,
"regionName": "Beijing",
"httpDur": 10060,
"cityId": 481101,
"countryId": 48,
"cityName": "Beijing",
"carrierName": "China Unicom",
"countyId": 48110105,
"httpCode": "504",
"timestamp": 1742365553000,
"countyName": "朝阳区",
"deviceType": "iPhone 12/13 (Pro)",
"ip": "114.242.217.98",
"sessionId": "f8c04247-a3cb-4dfc-8807-4f8de960cf2d",
"bytesSent": 0,
"userId": "testUser",
"url": "https://reportalpha1.tingyun.com/demo-server/api/moviesDetail",
"failMessage": "",
"serverTrace": false,
"bytesReceived": 685,
"system": "iOS 10.0.1",
"regionId": 4811,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"serverTraceId": ""
}
]
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» connectType | string | true | none | none | |
» httpServerTimingDur | integer | true | none | none | |
» regionName | string | true | none | none | |
» httpDur | integer | true | none | none | |
» cityId | integer | true | none | none | |
» countryId | integer | true | none | none | |
» cityName | string | true | none | none | |
» carrierName | string | true | none | none | |
» countyId | integer | true | none | none | |
» httpCode | string | true | none | none | |
» timestamp | integer | true | none | none | |
» countyName | string | true | none | none | |
» deviceType | string | true | none | none | |
» ip | string | true | none | none | |
» sessionId | string | true | none | none | |
» bytesSent | integer | true | none | none | |
» userId | string | true | none | none | |
» url | string | true | none | none | |
» failMessage | string | true | none | none | |
» serverTrace | boolean | true | none | none | |
» bytesReceived | integer | true | none | none | |
» system | string | true | none | none | |
» regionId | integer | true | none | none | |
» wechatVersion | string | true | none | none | |
» countryName | string | true | none | none | |
» carrierId | integer | true | none | none | |
» serverTraceId | string | true | none | none |