You need to enable JavaScript to run this app.
导航

PCContextValues

最近更新时间2024.05.07 20:48:37

首次发布时间2022.11.15 20:38:47

调用PCContextValues接口查看指定Context的取值。

请求说明

  • 请求方式:POST
  • 请求地址:/?Action=PCContextValues&Version=2022-10-28
ServiceName : apmplus_openapi
Region : cn-beijing
X-App-Ids : xxx
Content-Type : application/json

请求参数

Query

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

Body

参数类型是否必选示例值描述
app_idInteger12345App ID。
start_timeInteger1656288235开始时间,单位为秒。
end_timeInteger1656288235结束时间,单位为秒。
ev_typeString""崩溃类型,暂时只有pc_crash。
keyStringcontext_keycontext的key值。
regionStringcn请求区域,默认cn。

返回参数

参数类型示例值描述
dataArray of String["v1", "v2"]请求context key有哪些可选项。
errmsgString""错误信息,成功为空。
errnoInteger200错误码,成功为200。

请求示例

POST /?Action=PCContextValues&Version=2022-10-28
{
    "app_id": 12345,
    "start_time": 1656288235,
    "end_time": 1656288235,
    "region": "cn",
    "key": "context_key",
    "ev_type": "except"
}

返回示例

{
    "errno": 200,
    "data": [
        "v1",
        "v2"
    ],
    "errmsg": "happen"
}