Skip to main content

WeChat interface analysis

Interface overview

POST /adhoc/query

Body request parameter

{
"timePeriod": 360,
"endTime": "",
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
}
],
"datasource": "BRS_WECHAT_APPLET",
"dimensions": [
"timeStr"
],
"metrics": [
"apiCount",
"apiFailCount",
"apiCancelCount",
"apiSuccessCount",
"apiSuccessUV",
"apiFailUV",
"apiCancelUV",
"apiSuccessRate"
],
"render": "chart"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone

Return Results

Status CodeMeaning of status codeDescriptionData Model
200OKnoneInline

Return data structure

Status Code 200

Interface list

POST /adhoc/query

Body request parameter

{
"datasource": "BRS_WECHAT_APPLET",
"timePeriod": 360,
"endTime": "",
"metrics": [
"apiCount",
"apiSuccessCount",
"apiFailCount",
"apiCancelCount",
"apiSuccessRate",
"apiSuccessUV",
"apiFailUV",
"apiCancelUV"
],
"dimensions": [
"apiName"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "messageType",
"value": [
"API"
],
"operator": "IN"
}
],
"orderByExprs": "apiCount desc",
"limit": 1000,
"render": "object"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone

Return Example

[
{
"apiSuccessRate": {
"format": "0",
"label": "Success Percent",
"unit": "%",
"value": 0
},
"apiFailUV": {
"format": "1",
"label": "Fail User Count",
"unit": "",
"value": 1
},
"apiName": "requestPayment",
"apiCancelCount": {
"format": "0",
"label": "Cancel Count",
"unit": "",
"value": 0
},
"apiFailCount": {
"format": "2",
"label": "Fail Count",
"unit": "",
"value": 2
},
"apiCount": {
"format": "2",
"label": "Call Count",
"unit": "",
"value": 2
},
"apiCancelUV": {
"format": "0",
"label": "Fail User Count",
"unit": "",
"value": 0
},
"apiAlias": "requestPayment",
"apiSuccessCount": {
"format": "0",
"label": "Success Count",
"unit": "",
"value": 0
},
"apiSuccessUV": {
"format": "0",
"label": "Fail User Count",
"unit": "",
"value": 0
}
}
]

Return Results

Status CodeMeaning of status codeDescriptionData Model
200OKnoneInline

Return data structure

Status Code 200

NameTypeRequiredConstraintsChinese nameDescription
» apiSuccessRateobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiFailUVobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiNamestringtruenonenone
» apiCancelCountobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiFailCountobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiCountobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiCancelUVobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiAliasstringtruenonenone
» apiSuccessCountobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone
» apiSuccessUVobjecttruenonenone
»» formatstringtruenonenone
»» labelstringtruenonenone
»» unitstringtruenonenone
»» valueintegertruenonenone

Wechat API/API-Trace

API fail-Trace

POST /adhoc/query

Body request parameter

{
"datasource": "MP_API_TRACE",
"timePeriod": 10080,
"endTime": "",
"metrics": [],
"dimensions": [
"timestamp",
"apiName",
"apiStatus",
"userId",
"sessionId",
"ip",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "apiStatus",
"value": [
2
],
"operator": "IN"
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "object"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone

Return Example

[
{
"deviceType": "iPhone 12/13 (Pro)",
"apiName": "requestPayment",
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"apiAlias": "requestPayment",
"sessionId": "bd99dc19-ad68-4215-9a8e-e19c13486083",
"cityId": 481101,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"apiStatusName": "Fail",
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"apiStatus": 2,
"timestamp": 1742370085000,
"countyName": "朝阳区"
}
]

Return Results

Status CodeMeaning of status codeDescriptionData Model
200OKnoneInline

Return data structure

Status Code 200

NameTypeRequiredConstraintsChinese nameDescription
» deviceTypestringtruenonenone
» apiNamestringtruenonenone
» connectTypestringtruenonenone
» ipstringtruenonenone
» regionNamestringtruenonenone
» apiAliasstringtruenonenone
» sessionIdstringtruenonenone
» cityIdintegertruenonenone
» userIdstringtruenonenone
» countryIdintegertruenonenone
» systemstringtruenonenone
» cityNamestringtruenonenone
» carrierNamestringtruenonenone
» regionIdintegertruenonenone
» apiStatusNamestringtruenonenone
» countyIdintegertruenonenone
» wechatVersionstringtruenonenone
» countryNamestringtruenonenone
» carrierIdintegertruenonenone
» apiStatusintegertruenonenone
» timestampintegertruenonenone
» countyNamestringtruenonenone

API cancle-Trace

POST /adhoc/query

Body request parameter

{
"datasource": "MP_API_TRACE",
"timePeriod": 10080,
"endTime": "",
"metrics": [],
"dimensions": [
"timestamp",
"apiName",
"apiStatus",
"userId",
"sessionId",
"ip",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "apiStatus",
"value": [
3
],
"operator": "IN"
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "object"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone

Return Example

200 Response

{}

Return Results

Status CodeMeaning of status codeDescriptionData Model
200OKnoneInline

Return data structure

API success-Trace

POST /adhoc/query

Body request parameter

{
"datasource": "MP_API_TRACE",
"timePeriod": 10080,
"endTime": "",
"metrics": [],
"dimensions": [
"timestamp",
"apiName",
"apiStatus",
"userId",
"sessionId",
"ip",
"countryId",
"regionId",
"cityId",
"countyId",
"carrierId",
"connectType",
"wechatVersion",
"system",
"deviceType"
],
"filters": [
{
"name": "mpId",
"value": [
10
],
"operator": "IN"
},
{
"name": "apiStatus",
"value": [
1
],
"operator": "IN"
}
],
"groupBy": false,
"orderByExprs": "timestamp desc",
"limit": 10,
"render": "object"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone

Return Example

[
{
"deviceType": "iPhone 12/13 (Pro)",
"apiName": "previewImage",
"connectType": "wifi",
"ip": "114.242.217.98",
"regionName": "Beijing",
"apiAlias": "previewImage",
"sessionId": "c6868eb0-f6d4-4b37-93b9-5a19fe852c03",
"cityId": 481101,
"userId": "testUser",
"countryId": 48,
"system": "iOS 10.0.1",
"cityName": "Beijing",
"carrierName": "China Unicom",
"regionId": 4811,
"apiStatusName": "Success",
"countyId": 48110105,
"wechatVersion": "8.0.5",
"countryName": "China",
"carrierId": 16,
"apiStatus": 1,
"timestamp": 1742370282000,
"countyName": "朝阳区"
}
]

Return Results

Status CodeMeaning of status codeDescriptionData Model
200OKnoneInline

Return data structure

Status Code 200

NameTypeRequiredConstraintsChinese nameDescription
» deviceTypestringfalsenonenone
» apiNamestringfalsenonenone
» connectTypestringfalsenonenone
» ipstringfalsenonenone
» regionNamestringfalsenonenone
» apiAliasstringfalsenonenone
» sessionIdstringfalsenonenone
» cityIdintegerfalsenonenone
» userIdstringfalsenonenone
» countryIdintegerfalsenonenone
» systemstringfalsenonenone
» cityNamestringfalsenonenone
» carrierNamestringfalsenonenone
» regionIdintegerfalsenonenone
» apiStatusNamestringfalsenonenone
» countyIdintegerfalsenonenone
» wechatVersionstringfalsenonenone
» countryNamestringfalsenonenone
» carrierIdintegerfalsenonenone
» apiStatusintegerfalsenonenone
» timestampintegerfalsenonenone
» countyNamestringfalsenonenone