页面用户体验
查询页面列表
方法:POST
http://${域名}/browser-api/page/pageSqeList
请求参数
字段 |
类型 |
必选 |
说明 |
备注 |
browserApplicationId |
Int |
是 |
应用ID |
例如:1 |
focusType |
Int |
是 |
是否关键页面 |
1为只查关键页面,0为查询全部 |
dimensions |
String |
是 |
展示主机、URL、参数 |
例如:host,uri,pageParams |
timePeriod |
String |
是 |
查询时间范围 |
单位:分钟,可传值:60 |
endTime |
String |
是 |
查询结束事件 |
可传值:2020-07-23 17:18 |
countTotal |
Int |
否 |
PV范围 |
例如:10<countTotal<1000 |
limit |
int |
否 |
返回条数 |
默认:10000,建议1000 |
返回参数
字段 |
类型 |
urlAlias |
String |
durationTime |
integer |
pageParamsAlias |
String |
firstPaintTime |
integer |
traceCountUvTotal |
integer |
domReadyTime |
integer |
focus |
boolen |
uvTotal |
integer |
params |
String |
pageRenderTime |
integer |
uri |
String |
htmlLoadTime |
integer |
traceCount |
integer |
firstScreenTime |
integer |
host |
String |
countTotal |
integer |
jsErrorRate |
integer |
hostAlias |
String |
traceCountRate |
integer |
请求示例
"datasource": "BRS_PAGE",
"dimensions": [ //维度
"host",
"uri",
"pageParams"
],
"metrics": [
"focus", //关键页面
"urlAlias", //别名
"countTotal", //pv
"uvTotal", //用户数
"firstPaintTime", //白屏
"firstScreenTime", //首屏
"domReadyTime", //可交互
"durationTime", //完全加载
"traceCount", //慢页面次数
"traceCountUvTotal" //慢页面影响用户数
"jsErrorRate", //js错误率
"htmlLoadTime", //HTML加载
"pageRenderTime", //前端时间
"requestTime" //后端时间
"networkResponseTime" //网络时间
],
"filters": [
{
"name": "browserApplicationId",
"value": [
213
],
"operator": "IN"
},
{
"name": "focusType",
"value": [
0
],
"operator": "IN"
},
{
"name": "countTotal",
"value": [
"21"
],
"operator": ">"
},
{
"name": "countTotal",
"value": [
"23"
],
"operator": "<"
}
],
"limit": 1000,
"render": "list"
}
返回示例
{
"code": 200,
"data": {
"list": [
{
"urlAlias":"",
"durationTime":"0",
"pageParamsAlias":"1.1.1.1/*/*/js?ceshi=res.yuanjie555&service=res.cr...",
"firstPaintTime":"0",
"traceCountUvTotal":0,
"domReadyTime":"0",
"focus":"true",
"uvTotal":1,
"params":"ceshi=res.yuanjie555&service=res.crm.busicommon.ph...",
"pageRenderTime":"0",
"uri":"/*/*/js",
"htmlLoadTime":"0",
"traceCount":0,
"firstScreenTime":"0",
"host":"1.1.1.1",
"countTotal":0,
"jsErrorRate":"0",
"hostAlias":"",
"traceCountRate":"0"
}
]
},
"msg": "success",
"status": 200
}