最近更新时间:2023.10.12 17:40:10
首次发布时间:2022.11.28 17:17:36
调用接口分页查询指定域名下所有流的转码总量,及每条流的流名、编码格式和转码时长等信息。
说明
该接口属于历史版本 API,我们计划于 2023 年 12 月 25 日停止对其进行维护,并于 2024 年 3 月 25 日下线文档,建议您使用新版查询直播流的转码数据接口。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeLiveBatchStreamTranscodeData | 接口名称。当前 API 的名称为 DescribeLiveBatchStreamTranscodeData 。 |
Version | String | 是 | 2020-08-01 | 接口版本。当前 API 的版本为 2020-08-01 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
DomainList | Array of String | 否 | ["example.com", "example2.com"] | 域名列表。缺省情况下,表示当前账号下的所有域名 |
StartTime | String | 是 | 2022-11-10T00:00:00+08:00 | 查询的起始时间,支持查询最近 93 天内的数据。RFC3339 格式的 UTC 时间,精度为 s,例如,2022-04-01T00:00:00+08:00 |
EndTime | String | 是 | 2022-11-11T00:00:00+08:00 | 查询的结束时间,支持查询最近 93 天内的数据。RFC3339 格式的 UTC 时间,精度为 s,例如,2022-04-02T00:00:00+08:00 |
PageNum | Integer | 否 | 1 | 分页查询页码,默认值为 1,即查询第一页的信息 |
PageSize | Integer | 否 | 100 | 单个分页中,查询的流数量。默认值为 1000,取值范围为 [100,1000] |
下表仅列出本接口特有的返回参数。更多信息请见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
DomainList | Array of String | ["example.com", "example2.com"] | 域名列表 |
StartTime | String | 2022-11-10T00:00:00+08:00 | 查询的起始时间 |
EndTime | String | 2022-11-11T00:00:00+08:00 | 查询的结束时间 |
TotalDuration | Float | 40 | 查询结果中,所有流的转码总时长,单位为分钟 |
StreamInfoList | Array of StreamInfoList | - | 流维度的转码用量信息详情 |
Pagination | Object of Pagination | - | 分页信息 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Domain | String | example.com | 域名 |
Stream | String | example_stream | 流名称 |
App | String | example_app | 应用名称 |
VCodec | String |
| 视频编码格式,支持的取值和含义如下所示。
|
Duration | Float | 30 | 当前流的转码总时长,单位为分钟 |
Resolution | String |
| 当前流的分辨率,支持的取值如下所示。
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNum | Integer | 1 | 页数 |
PageSize | Integer | 1000 | 当前页的大小 |
TotalCount | Integer | 2 | 总流数 |
POST https://live.volcengineapi.com?Action=DescribeLiveBatchStreamTranscodeData&Version=2020-08-01 { "StartTime": "2022-11-10T00:00:00+08:00", "EndTime": "2022-11-11T00:00:00+08:00", }
{ "ResponseMetadata":{ "RequestId": "201806041104200100100232280022D30", "Action": "DescribeLiveBatchStreamTranscodeData", "Version": "2020-08-01", "Service": "live", "Region": "cn-north-1" }, "Result":{ "StartTime": "2022-11-10T00:00:00+08:00", "EndTime": "2022-11-11T00:00:00+08:00", "TotalDuration": 40, "StreamInfoList": [ { "Domain": "example.com" "Stream": "example_stream", "App": "example_app", "Resolution": "720P", "Duration": 20, "VCodec": "Normal_H264" }, { "Domain": "example2.com" "Stream": "example_stream2", "App": "example_app", "Resolution": "720P", "Duration": 20, "VCodec": "Normal_H264" } ], "Pagination": { "PageNum": 1, "PageSize": 1000, "TotalCount": 2, } }
访问公共错误码获取详细信息。