页面用户体验
查询页面列表
方法: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", //是否为关键页面 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
}