调用本接口获取数据流事件信息列表。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListMediapipeEvent | 要执行的操作,取值:ListMediapipeEvent。 |
Version | String | 是 | 2022-01-01 | API的版本,取值:2022-01-01。 |
created_orderby | Integer | 否 | 0 | 按创建时间对数据流事件排序。该参数有以下取值:
|
page_index | Integer | 是 | 1 | 设置要返回的页码。数据流事件默认按照创建时间降序排序。您可以设置 created_orderby 来修改排序方式。 |
page_size | Integer | 是 | 10 | 设置单页包含的最大事件数。 |
event_type | String | 否 | UserDefinedMediapipeEvent | 要查询的事件类型。该参数有以下取值:
|
instance_id | String | 否 | mpi-2100053947-9dl8n | 要查询的数据流实例ID。
|
instance_name | String | 否 | instanceA | 要查询的数据流实例名称。 |
source_type | Integer | 否 | 2 | 数据源的类型。该参数有以下取值:
|
source_id | String | 否 | source_id123 | 数据源ID。 |
project_id | String | 否 | project_id123456 | 数据流实例所属边缘智能项目ID。
|
start_time | Integer | 否 | 1689046430 | 事件发生的最早时间。使用秒级使用戳格式。 |
end_time | Integer | 否 | 1689046478 | 事件发生的最晚时间。使用秒级时间戳格式。 |
node_id | String | 否 | sxn012-bdvbaz | 数据流实例所在节点ID。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
items | Array of Object | 数据流事件对象。 | |
pageinator | Object | 分页信息。 |
POST /?Action=ListMediapipeEvent&Version=2022-01-01 HTTP/1.1 Host: open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20250418T063418Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250418/cn-beijing/vei_api/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "page_index": 1, "page_size": 10, "instance_id": "mpi-2100053947-9dl8n" }
"ResponseMetadata": { "RequestId": "20230711120104C4F5B5CB316913FE3B57", "Action": "ListMediapipeEvent", "Version": "2022-01-01", "Service": "vei_api", "Region": "cn-north-1" }, "Result": { "items": [ { "event_id": "64abec17e80495d102ac1c2e", "event_type": "UserDefinedMediapipeEvent", "instance_id": "mpi-2100055467-92vbn", "instance_name": "lhk-test-2", "source_type": 1, "source_id": "zzz", "project_id": "p-2100055467-dr9qv", "create_time": "1688988693", "obj_bboxes": [ { "id": 33, "top": 330, "left": 238, "width": 24, "height": 91, "label": "person", "prob": -0.10000000149011612 }, { "id": 31, "top": 317, "left": 201, "width": 44, "height": 114, "label": "person", "prob": -0.10000000149011612 }, { "id": 30, "top": 324, "left": 251, "width": 31, "height": 104, "label": "person", "prob": -0.10000000149011612 }, { "id": 29, "top": 322, "left": 274, "width": 40, "height": 103, "label": "person", "prob": -0.10000000149011612 } ], "json_all_string": "{\"version\":\"4.0\",\"ROI\":{\"current\":{\"ROI1\":4}},\"device_profile_id\":\"\",\"sensorId\":\"camera_name_0\",\"objects\":[{\"label\":\"person\",\"left\":238,\"prob\":-0.10000000149011612,\"roiStatus\":[\"ROI1\"],\"top\":330,\"width\":24,\"height\":91,\"id\":33},{\"width\":44,\"height\":114,\"id\":31,\"label\":\"person\",\"left\":201,\"prob\":-0.10000000149011612,\"roiStatus\":[\"ROI1\"],\"top\":317},{\"label\":\"person\",\"left\":251,\"prob\":-0.10000000149011612,\"roiStatus\":[\"ROI1\"],\"top\":324,\"width\":31,\"height\":104,\"id\":30},{\"label\":\"person\",\"left\":274,\"prob\":-0.10000000149011612,\"roiStatus\":[\"ROI1\"],\"top\":322,\"width\":40,\"height\":103,\"id\":29}],\"project_id\":\"p-2100055467-dr9qv\",\"id\":\"2520\",\"source_type\":\"RTSP\",\"@timestamp\":\"2023-07-10T11:31:33.796Z\",\"mediapipe_instance_id\":\"mpi-2100055467-92vbn\",\"node_id\":\"sag001-rn000a\",\"source_id\":\"zzz\",\"device_name\":\"\",\"mediapipe_instance_name\":\"lhk-test-2\",\"account_id\":\"2100055467\"}", "node_id": "sag001-rn000a" }, }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
400 | 600004 | ListOrder 参数解析错误。 |