Skip to main content

Request analysis

Overview

Network request list

POST /network/list

Request parameterTypeRequired parameterDescription
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)
orderByStringNoSorting indicator name, indicator name see list
orderTypeStringNoasc: Ascending order, desc: Descending order. If not passed, default (ascending order)
focusTypeNumberNo0: Query all, 1: Query only key requests
[
{
"host": "192.168.2.39:8080",
"uri": "/portal/orderStatus",
"focus": true,
... // For other indicators returned, see the prototype and baseon name
}
]

Details

Number of requests

POST /network/count

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)
hostStringNoHost of network request
uriStringNoURI of network request

Return result:

{
"count": 88 //pv
}

Performance decomposition chart

POST /chart/request-performance

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

Data volume transmitted

POST /chart/request-transmission

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoDeadline format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

TOP5 error type error rate

POST /chart/request-errorratio-top

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

URL network request error rate

POST /chart/request-errorrate

Description: Specify the URL network request error rate

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoThe parameter defaults to 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

Custom data status code stacking chart

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

Request data availability trend chart

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)

Return result: (Highcharts chart general return result)

Call page statistics

POST /network/calllist

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
hostStringYeshost
uriStringYesuri
timePeriodNumberNoThe parameter is 30 minutes by default
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)
[
{
"pv": 65,
"netCount": 65,
"transmission": 0.012,
"responseTime": 2416.0,
"netErrorCount": 0,
"pageUri": "pages/index/index",
"ajaxErrorCount": 0.0,
"path": "pages/index/index",
"errorRate": 0.0,
"netCountRatio": 91.55
},
...
]

Slow request list

POST /abnormal/slowrequest/list

Description: Slow request list under the same page details

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
pathStringNoPage routing path, need to be passed when checking under the page
hostStringNoNetwork request host, need to be passed when checking under the network request
uriStringNoNetwork request uri, need to be passed when checking under the network request
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)
serverTraceNumberNoCan trace server trace, 0: No filtering, 1: Only filter server trace
minDurationNumberNoMinimum response time
maxDurationNumberNoMaximum response time

Return result: (Same page slow request list interface)

Error request tracking

POST /abnormal/errorrequest/list

Description: Same page details under the error request list

Request parameterTypeRequired parameterDescription
mpIdNumberYesMini program id
timePeriodNumberNoParameter default is 30 minutes
endTimeStringNoEnd time format yyyy-MM-dd HH:mm For example (2018-02-07 17:39)
pathStringNoPage routing path
serverTracebooleanNoWhether to query only data with servertrace, otherwise do not pass this parameter

Return result:

[
{
"host": "10.128.1.42",
"uri": "/browser/list",
"timestamp": "2018-11-07 10:07",
"status": 421, // http status code
"trace": false, // is there a trace
"failMessage": "xxxx",
"serverId": 100, //server application Id
"serverTraceId": "xxdjsodjoisdjo" //server traceId
},
...
]