获取实时数据报告异常明细。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v2/openapi/instances/[instanceId]/sync-reports/outliers HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
startTime Long Query 1586673466

开始时间秒级时间戳

endTime Long Query 1586673466

结束时间秒级时间戳

key String Query xxx

key 校验规则 优化建议:

itemBhv

实时行为中,商品ID是否存在于商品库中;

userBhv

实时行为中,用户ID是否存在于用户库中;

bhvTypeBhv

实时行为中,bhv_type是否合法;

traceIdBhv

实时行为中,trace_id是否合法;

traceInfoBhv

实时行为中,trace_info是否合法;

itemItem

修改记录物品ID是否合法;

userUser

修改记录用户ID是否合法;

key 文案 问号内容:

updateCnt

查询时段更新类型消息数

查询时段更新类型消息总数,不去重;

deleteCnt

查询时段删除类型消息数

查询时段删除类型消息总数,不去重;

addCnt

查询时段新增类型消息数

查询时段新增类型消息总数,不去重

levelType String Query info

error|info|warn

instanceId String Path airec-cn-o400whm78004

实例ID。

type String Query behavior

item|hehavoir|user

返回数据

名称 类型 示例值 描述
code String InternalServerError

错误码

message String An internal server error occurred

错误详情

requestId String 8F81A922-6C81-46D6-B78C-CC35E16B1691

请求id

result Map xxx

返回详情结果

示例

请求示例

GET /openapi/instances/airec-cn-xxxxxx/sync-reports/outliers?startTime=1563944400&endTime=1563988400&key=itemBhv&type=item

正常返回示例

XML格式

<RequestId>70A97872-A943-41AB-9B96-A2DA8A23D062</RequestId>
<Result>
    <Num>2380</Num>
    <KeyList>trace_id</KeyList>
    <KeyList>trace_info</KeyList>
    <KeyList>imei</KeyList>
    <KeyList>scene_id</KeyList>
    <KeyList>user_id</KeyList>
    <KeyList>item_id</KeyList>
    <KeyList>item_type</KeyList>
    <KeyList>bhv_type</KeyList>
    <KeyList>bhv_value</KeyList>
    <KeyList>bhv_time</KeyList>
    <KeyList>_cmd</KeyList>
    <Detail>
        <trace_id>selfhold</trace_id>
        <trace_info>bi_recommend</trace_info>
        <imei>e655efcdebd1195d</imei>
        <scene_id>1_0:1</scene_id>
        <user_id>abf9dcf4-ad45-42a3-8206-f9b59f69bad4</user_id>
        <item_id>1_14533808700</item_id>
        <item_type>item</item_type>
        <bhv_type>expose</bhv_type>
        <bhv_value>1</bhv_value>
        <bhv_time>1566506063</bhv_time>
        <_cmd>add</_cmd>
    </Detail>
    <Detail>
        <trace_id>Alibaba</trace_id>
        <trace_info>1007.58514.121841.100200300000000:110c90ff-5dee-441a-9d77-5e3000f178d0:0347ace0-8666-4fad-8958-b85ae1313317:1_0:0:2:3_0:1:::12:content___1_100002501966:item:cd:9.9073564027936E-4:0.050983321410151126:0.0016925159331663759:1563250693409::::::::::</trace_info>
        <imei>819183BF-0F5E-488A-B036-27CC67166440</imei>
        <scene_id>3_0:1</scene_id>
        <user_id>0347ace0-8666-4fad-8958-b85ae1313317</user_id>
        <item_id>1_100002501966</item_id>
        <item_type>item</item_type>
        <bhv_type>expose</bhv_type>
        <bhv_value>1</bhv_value>
        <bhv_time>1566506155</bhv_time>
        <_cmd>add</_cmd>
    </Detail>
</Result>

JSON格式

{
    "RequestId": "70A97872-A943-41AB-9B96-A2DA8A23D062",
    "Result": {
        "Num": 2380,
        "KeyList": [
            "trace_id",
            "trace_info",
            "imei",
            "scene_id",
            "user_id",
            "item_id",
            "item_type",
            "bhv_type",
            "bhv_value",
            "bhv_time",
            "_cmd"
        ],
        "Detail": [
            {
                "trace_id": "selfhold",
                "trace_info": "bi_recommend",
                "imei": "e655efcdebd1195d",
                "scene_id": "1_0:1",
                "user_id": "abf9dcf4-ad45-42a3-8206-f9b59f69bad4",
                "item_id": "1_14533808700",
                "item_type": "item",
                "bhv_type": "expose",
                "bhv_value": 1,
                "bhv_time": 1566506063,
                "_cmd": "add"
            },
            {
                "trace_id": "Alibaba",
                "trace_info": "1007.58514.121841.100200300000000:110c90ff-5dee-441a-9d77-5e3000f178d0:0347ace0-8666-4fad-8958-b85ae1313317:1_0:0:2:3_0:1:::12:content___1_100002501966:item:cd:9.9073564027936E-4:0.050983321410151126:0.0016925159331663759:1563250693409::::::::::",
                "imei": "819183BF-0F5E-488A-B036-27CC67166440",
                "scene_id": "3_0:1",
                "user_id": "0347ace0-8666-4fad-8958-b85ae1313317",
                "item_id": "1_100002501966",
                "item_type": "item",
                "bhv_type": "expose",
                "bhv_value": 1,
                "bhv_time": 1566506155,
                "_cmd": "add"
            }
        ]
    }
}

错误码

访问错误中心查看更多错误码。