You need to enable JavaScript to run this app.
导航
ResourceItemBlankScreenCount
最近更新时间:2024.07.12 17:21:39首次发布时间:2022.11.18 15:32:35

获取静态资源错误导致的白屏列表。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com/?Action=ResourceItemBlankScreenCount&Version=2022-10-12
ServiceName: apmplus_openapi
Region: cn-beijing 
X-App-Ids: xxx
Content-Type: application/json

请求参数

Query

参数类型是否必选示例值描述
ActionStringResourceItemBlankScreenCount接口名称。当前 API 的名称为 ResourceItemBlankScreenCount
VersionString2022-10-12接口版本。当前 API 的版本为 2022-10-12

Body

参数类型是否必选示例值描述
nameStringdata:image/svg+xml静态资源地址。
typeStringresource静态资源类型。
commonObject of CommonParams-通用参数。
time_filterObject of TimeFilter-时间区间。
filter_conditionsObject of FilterCondition-筛选条件。
order_byStringscore,client_time排序维度。
orderStringdesc,asc升序或者降序。
pgnoLong1页号。
pgszLong10每页项数。

CommonParams

参数类型是否必选示例值描述
aidLong12345应用ID。
site_typeStringweb站点类型。
envStringonline环境,填""时为全部。
osStringwebpro服务类型,可选值为webproappminipro
userStringtest_user用户名。

TimeFilter

参数类型是否必选示例值描述
start_timeInteger1665485413起始时间,单位s。
end_timeInteger1665744613终止时间,单位s。
granularityInteger3600聚合时间粒度,单位s。

FilterCondition

参数类型是否必选示例值描述
typeStringand筛选条件类型,可选值为andrule,只支持两层,第一层的type必须为and,第二层的type必须为rule。
fieldStringpid条件字段key,可选值集合由GetFieldKeys方法获取。
opStringin条件符号,可选值有eq,neq,lt,lte,gt,gte,in,not_in,regex,not_regex。
groupKeyStringcontextmap类型字段key,可选值集合由GetFieldKeys方法获取。
valuesArray of String[数据探索]条件值,可选值集合由GetFieldValues方法获取。
childrenArray of FilterCondition-如果下层还有条件,则放入该处,即type为and时必填。这一层与field,op,groupkey以及values不能同时存在。

返回参数

参数类型示例值描述
dataObject of ResourceItemBlankScreenResponseData-静态资源错误导致的白屏列表。
errmsgString-错误信息,成功为空。
errnoInteger0错误码,成功为0。

ResourceItemBlankScreenResponseData

参数类型示例值描述
totalLong10白屏数。
resultArray of ListItem-白屏列表。
user_totalLong10白屏影响用户数。

ListItem

参数类型示例值描述
pidStringpath_test白屏页面pid。
urlStringhttps://www.test.com/path_test?key1=value1白屏页面url。
scoreDouble0白屏分数。
screenshotStringdata:image/jpeg;base64,/9j/4AAQS白屏现场截图base64编码值。
session_idString049437a9白屏关联的session_id。
client_timeLong1667313554658白屏发生的客户端时间。

请求示例

POST https://open.volcengineapi.com/?Action=ResourceItemBlankScreenCount&Version=2022-10-12
{
    "name": "data:image/svg+xml",
    "type": "resource",
    "common": {
        "aid": 12345,
        "site_type": "web",
        "env": "online",
        "user": "test_user",
        "os": "webpro"
    },
    "time_filter": {
        "start_time": 1665485413,
        "end_time": 1665744613,
        "granularity": 3600
    },
    "pgno": 1,
    "pgsz": 10,
    "order_by": "score,client_time",
    "filter_conditions": {
        "type": "and",
        "groupKey": "context",
        "values": "[数据探索]",
        "field": "pid",
        "op": "in",
        "children": [
            {
                "type": "and",
                "groupKey": "context",
                "children": [],
                "field": "pid",
                "op": "in",
                "values": "[数据探索]"
            }
        ]
    },
    "order": "desc,asc"
}

返回示例

{
    "data": {
        "result": [
            {
                "url": "https://www.test.com/path_test?key1=value1",
                "score": 706,
                "session_id": "049437a9",
                "client_time": 1667313554658,
                "pid": "path_test",
                "screenshot": "data:image/jpeg;base64,/9j/4AAQS"
            }
        ],
        "user_total": 10,
        "total": 10
    },
    "errmsg": "",
    "errno": 0
}

错误码

本接口无特有的错误码。更多信息请参见错误码