跳到主要内容

页面用户体验

查询页面列表

方法:POST

http://${域名}/browser-api/page/pageSqeList

请求参数

字段类型必选说明备注
browserApplicationIdInt应用ID例如:1
focusTypeInt是否关键页面1为只查关键页面,0为查询全部
dimensionsString展示主机、URL、参数例如:host,uri,pageParams
timePeriodString查询时间范围单位:分钟,可传值:60
endTimeString查询结束事件可传值:2020-07-23 17:18
countTotalIntPV范围例如:10<countTotal<1000
limitint返回条数默认:10000,建议1000

返回参数

字段类型
urlAliasString
durationTimeinteger
pageParamsAliasString
firstPaintTimeinteger
traceCountUvTotalinteger
domReadyTimeinteger
focusboolen
uvTotalinteger
paramsString
pageRenderTimeinteger
uriString
htmlLoadTimeinteger
traceCountinteger
firstScreenTimeinteger
hostString
countTotalinteger
jsErrorRateinteger
hostAliasString
traceCountRateinteger

请求示例

"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", //是否为关键页面 true为是
"uvTotal":1, //用户数
"params":"ceshi=res.yuanjie555&service=res.crm.busicommon.ph...", //参数
"pageRenderTime":"0", //前端时间
"uri":"/*/*/js", //uri
"htmlLoadTime":"0", //html加载时间
"traceCount":0, //慢页面次数
"firstScreenTime":"0", //首屏
"host":"1.1.1.1", //host
"countTotal":0, //PV
"jsErrorRate":"0", //js错误率
"hostAlias":"",
"traceCountRate":"0"
}
]
},
"msg": "success",
"status": 200
}