查询推流记录
描述
本接口用于查询推流历史记录
- 接口请求域名:
qvs.qiniuapi.com
- 请求方式:GET
- 接口路径:
/v1/namespaces/{namespaceId}/streams/{streamId}/pubhistories?start=<start>&end=<end>&offset=<offset>&line=<line>
请求参数
路径参数
参数名称 | 必填 | 字段类型 | 说明 |
---|---|---|---|
namespaceId | 是 | string | 空间名称ID |
streamId | 是 | string | 流ID |
offset | 否 | integer | 在全部流中的偏移量 |
line | 否 | integer | 一次返回多少条 |
start | 是 | integer | 推流开始时间(unix timestamp in second) |
end | 是 | integer | 推流结束时间(unix timestamp in second) |
响应参数
参数名称 | 类型 | 说明 |
---|---|---|
items | 推流历史记录数组 | 推流历史记录数组 |
items.start | integer | 推流开始时间(unix timestamp in second) |
items.end | integer | 推流结束时间(unix timestamp in second) |
items.duration | integer | 推流时长 |
total | integer | 查询到历史记录总数 |
示例
请求示例
curl --request GET \
--url http://qvs.qiniuapi.com/v1/namespaces/d102sni9zryu/streams/device009/pubhistories?start=1586828400&end=1586828425 \
--header 'authorization: Qiniu j853F3bLkWl59I5BOkWm6q1Z1mZClpr9Z9CLfDE0:u372aQV0359mzwTVGxn22sRgFYc='
响应示例
{
"items":[
{
"start": 1586828404,
"end": 1586828420,
"duration": 16,
}
]
"total":1
}
`
文档反馈
(如有产品使用问题,请提交工单)