查询指定视频流在某个时间段的推流记录信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | StreamLogs | 要执行的操作,取值:StreamLogs。 |
Version | String | 是 | 2021-01-01 | API的版本,取值:2021-01-01。 |
StreamID | String | 是 | 2a772f0b-753c-4496-b535-a8df0fxxxxxx | 视频流 ID,可通过调用 ListStreams 接口获取 |
StartTs | String | 是 | 1662014220 | 查询的起始时间,例如:1662014220 |
EndTs | String | 是 | 1663137420 | 查询的结束时间,例如:1663137420 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNumber | Integer | 1 | 查询结果分页参数,页码 |
PageSize | Integer | 20 | 查询结果分页参数,单页数据量 |
TotalCount | Integer | 3 | 查询到的结果总数 |
StreamRecords | Object | 查询到的推流记录列表,参考以下 |
POST /?Action=StreamLogs&Version=2021-01-01&StreamID=2a772f0b-753c-4496-b535-a8df0fxxxxxx&StartTs=1662014220&EndTs=1663137420 HTTP/1.1 Host: open.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20241219T035137Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20241219/cn-beijing/aiotvideo/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f {}
{ "ResponseMetadata": { "RequestId": "20241219115140177081149253717077", "Action": "StreamLogs", "Version": "2021-01-01", "Service": "aiotvideo", "Region": "cn-beijing" }, "Result": { "PageNumber": 1, "PageSize": 20, "TotalCount": 3, "StreamRecords": { "StreamID": "2a772f0b-753c-4496-b535-a8df0fxxxxxx", "RecordID": "7da3b2f2-6d81-4fcc-a867-c9f818xxxxxx", "StartTime": 1662103415, "EndTime": 1662432087, "Duration": 328672 } } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
---|---|---|
500 | ErrorStreamDBNotFound | |
500 | InternalErrorStreamDB |