查询指定 OpenSearch 应用的数据质量报告

调试

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

请求头

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

请求语法

GET /v4/openapi/app-groups/[appGroupIdentity]/data-report HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
appGroupIdentity String Path my_app_group_name

应用名称

endTime String Query 1582646399

结束时间

默认为当前时间戳

startTime String Query 1582214400

开始时间

默认为当天0分0秒的时间戳

返回数据

名称 类型 示例值 描述
requestId String D77D0DAF-790D-F5F5-A9C0-133738165014

请求ID

result Struct

数据质量报告信息

receivedCount Integer 100

数量

receivedSample Array of receivedSample

抽样数据,JSON型字符

串参考:数据采集 - 行为数据上报

message Struct

数据报告信息

arg1 String search
arg3 String 100
args String object_id=0,object_type=ops_search_doc,ops_request_misc=%7B%22request%5Fid%22%3A%22156692276120025169650670%22%2C%22scm%22%3A%2220140713.100289989..%22%7D
clientIp String 10.101.193.208
eventId Integer 2001
page String detail
sdkType String opensearch_sdk
sdkVersion String v3.2.0
sessionId String 10.101.193.20812345678901
userId String test_user_2
receivedTimeMs Long 1566922762148

返回时间

示例

请求示例

GET /v4/openapi/app-groups/daydayup/data-report?startTime=1593964800&endTime=1594051200

正常返回示例

XML格式

<requestId>D77D0DAF-790D-F5F5-A9C0-133738165014</requestId>
<result>
    <receivedCount>100</receivedCount>
    <receivedSample>[{"receivedTimeMs":1566922762148,"message":{"clientIp":"10.101.193.208","arg3":"100","userId":"test_user_2","args":"object_id=0,object_type=ops_search_doc,ops_request_misc=%7B%22request%5Fid%22%3A%22156692276120025169650670%22%2C%22scm%22%3A%2220140713.100289989..%22%7D","arg1":"search","sdkType":"opensearch_sdk","sessionId":"10.101.193.20812345678901","eventId":2001,"sdkVersion":"v3.2.0","page":"detail"}},{"receivedTimeMs":1566922762148,"message":{"bhvType":"click","bhvValue":"","bizId":123321,"rn":"reqqwerqasdfasdf123124","reachTime":123321,"itemId":"asb-123","itemType":2001,"sdkVersion":"v3.3.0"}}]</receivedSample>
</result>

JSON格式

{
    "requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
    "result": {
        "receivedCount": 100,
        "receivedSample": "[{\"receivedTimeMs\":1566922762148,\"message\":{\"clientIp\":\"10.101.193.208\",\"arg3\":\"100\",\"userId\":\"test_user_2\",\"args\":\"object_id=0,object_type=ops_search_doc,ops_request_misc=%7B%22request%5Fid%22%3A%22156692276120025169650670%22%2C%22scm%22%3A%2220140713.100289989..%22%7D\",\"arg1\":\"search\",\"sdkType\":\"opensearch_sdk\",\"sessionId\":\"10.101.193.20812345678901\",\"eventId\":2001,\"sdkVersion\":\"v3.2.0\",\"page\":\"detail\"}},{\"receivedTimeMs\":1566922762148,\"message\":{\"bhvType\":\"click\",\"bhvValue\":\"\",\"bizId\":123321,\"rn\":\"reqqwerqasdfasdf123124\",\"reachTime\":123321,\"itemId\":\"asb-123\",\"itemType\":2001,\"sdkVersion\":\"v3.3.0\"}}]"
    }
}

错误码

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