All Products
Search
Document Center

DescribeSyncReportOutliers

Last Updated: Jan 15, 2021

DescribeSyncReportOutliers

Description

Queries details about abnormal data in a real-time data report.

Method

GET

URI

/openapi/instances/{instanceId}/sync-reports/outliers

Request parameters

Parameter

Type

Required

Description

startTime

Timestamp, accurate to the second

Yes

The start time. The value of the parameter must be the exact beginning of an hour and must be accurate to the second.

endTime

Timestamp, accurate to the second

Yes

The end time. The value of the parameter must be the exact beginning of an hour and must be accurate to the second.

key

String

Yes

For details, see the following tables.

type

String

Yes

Valid values: item, behavior, and user.

levelType

String

Yes

Valid values: error, info, and warn.

key

Verification rule

Optimization suggestion

itemBhv

Whether the item ID exists in the item table

userBhv

Whether the user ID exists in the user table

bhvTypeBhv

Whether the value of bhv_type is valid in real-time behavior data

traceIdBhv

Whether the value of trace_id is valid in real-time behavior data

traceInfoBhv

Whether the value of trace_info is valid in real-time behavior data

itemItem

Whether the item ID is valid in a modification record

userUser

Whether the user ID is valid in a modification record

key

Description

Remarks

updateCnt

The number of update messages within a specific period.

The total number of update messages within a specific period is queried. Duplicate messages are not removed.

deleteCnt

The number of deletion messages within a specific period.

The total number of deletion messages within a specific period is queried. Duplicate messages are not removed.

addCnt

The number of addition messages within a specific period.

The total number of addition messages within a specific period is queried. Duplicate messages are not removed.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

Map

The result that is returned.

Sample requests

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

Sample responses

Sample success responses

{
    "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"
              }
         ]
    }
}