setData analysis
setData list
Method: POST
http://${domain name}/mp-api/setData/setDataSqeList
Request parameters
| Field | Type | Required | Description | Remarks | | ------------ | ------ | ---- | ------------------- | ---- -------------------------- | | mpId | Int | Yes | Application ID | Example: 1 | | dimensions | String | Yes | Display host, URL, parameters | For example: host, uri, pageParams | | timePeriod | String | Yes | Query time range | Unit: minutes, passable value: 60 | | endTime | String | Yes | Query end event | Passable value: 2020-07-23 17:18 | | orderByExprs | Int | No | Indicator ordering rule | For example: setDataCount desc | | limit | int | No | Number of items returned | Default: 10000, 1000 recommended |
Return parameters
Field | Type |
---|---|
setDataCount | String |
setDataTime | integer |
setDataPending | integer |
setDataUpdate | integer |
path | String |
setDataSizeMax | String |
setDataRpsMax | integer |
pathAlias | String |
Request example
{
"datasource":"MP_SETDATA",
"timePeriod":43201,
"endTime":"2023-02-23 16:57",
"dimensions":[
"path"
],
"filters":[
{
"name":"mpId",
"value":[
155
],
"operator":"IN"
}
],
"limit":1000,
"metrics":[
"setDataCount", //Number of calls
"setDataTime", //Time consuming
"setDataPending", //queue time consumption
"setDataUpdate", //Computation time consuming
"setDataRpsMax", //Peak frequency
"setDataSizeMax" //Peak rendering size
],
"orderByExprs":"setDataCount desc",
"render":"list"
}
Return to example
[
{
"path":"", //Page path
"setDataSizeMax":"363.29",//Peak rendering size
"setDataCount":"53",//Number of calls
"setDataUpdate":7701,//Operation time consuming
"setDataPending":105262,//queue time consumption
"setDataTime":95963,//Time-consuming
"setDataRpsMax":4,//Peak frequency
"pathAlias":"" //Page alias
}
]
setData-Slow time consumption details list
Method: POST
http://${domain name/mp-api/setData/setDataTrace?label=slow
Request parameters
| Field | Type | Required | Description | Remarks | | ------------ | ------ | ---- | ------------------- | ---- -------------------------- | | mpId | Int | Yes | Application ID | Example: 1 | | dimensions | String | Yes | Display host, URL, parameters | For example: host, uri, pageParams | | timePeriod | String | Yes | Query time range | Unit: minutes, passable value: 60 | | endTime | String | Yes | Query end event | Passable value: 2020-07-23 17:18 | | orderByExprs | Int | No | Indicator ordering rule | For example: setDataCount desc | | limit | int | No | Number of items returned | Default: 10000, 1000 recommended |
Return parameters
Field | Type |
---|---|
duration | String |
traceId | String |
pendingDur | String |
pageTime | String |
updateDur | String |
renderSize | String |
deviationTime | String |
userId | String |
dataPath | String |
Request example
{
"datasource":"mp_setdata_trace",
"timePeriod":43201,
"endTime":"2023-02-23 17:05",
"dimensions":[
"dataPath", //dataPath
"pageTime", //page opening time
"userId", //User ID
"traceId" //traceID
],
"filters":[
{
"name":"mpId",
"value":[
155
],
"operator":"IN"
},
{
"name":"path",
"value":[
"/pages/index/index/xin/nn"
],
"operator":"IN"
}
],
"limit":1000,
"metrics":[
"deviationTime", //time offset
"duration", //Time consuming
"pendingDur", //Queue time consumption
"updateDur", //Computation time consuming
"renderSize" //size
],
"orderByExprs":"pageTime desc",
"render":"list",
"groupBy":false
}
Return to example
[
{
"duration":"66001",//Time-consuming
"traceId":"6f8ca9b9a75f456ba13282e31a19b9eb",//traceID
"pendingDur":"65701",//queue time consumption
"pageTime":"2022-12-08 15:29:21 965", //Page opening time
"updateDur":"301",//Operation time consuming
"renderSize":"363.29", //size
"deviationTime":"6",//time offset
"userId":"wjn_12-30",//User ID
"dataPath":"items"//dataPath
}
]