Queries the stream ingest records of a LiveChannel. The GetLiveChannelHistory operation returns up to the 10 most recent stream ingest records.
Request syntax
GET /ChannelName?live&comp=history HTTP/1.1
Date: GMT date
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
Response element
|
Element |
Type |
Description |
|
LiveChannelHistory |
Container |
The container that stores the response to the GetLiveChannelHistory request. Sub-node: LiveRecord Parent node: None |
|
LiveRecord |
Container |
The container that stores a stream ingest record. Sub-node: StartTime, EndTime, and RemoteAddr Parent node: LiveChannelHistory |
|
StartTime |
String |
The time when the client starts to push the stream, in ISO 8601 format. Sub-node: None Parent node: LiveRecord |
|
EndTime |
String |
The time when the client stops pushing the stream, in ISO 8601 format. Sub-node: None Parent node: LiveRecord |
|
RemoteAddr |
String |
The IP address of the client that pushes the stream. Sub-node: None Parent node: LiveRecord |
Examples
Request example
GET /test-channel?live&comp=history HTTP/1.1
Date: Thu, 25 Aug 2016 07:00:12 GMT
Host: test-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e
Response example
HTTP/1.1 200
content-length: 1892
server: AliyunOSS
connection: close
x-oss-request-id: 57BE977CB92475920B0022FB
date: Thu, 25 Aug 2016 07:00:12 GMT
content-type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<LiveChannelHistory>
<LiveRecord>
<StartTime>2016-07-30T01:53:21.000Z</StartTime>
<EndTime>2016-07-30T01:53:31.000Z</EndTime>
<RemoteAddr>10.101.194.148:56861</RemoteAddr>
</LiveRecord>
<LiveRecord>
<StartTime>2016-07-30T01:53:35.000Z</StartTime>
<EndTime>2016-07-30T01:53:45.000Z</EndTime>
<RemoteAddr>10.101.194.148:57126</RemoteAddr>
</LiveRecord>
<LiveRecord>
<StartTime>2016-07-30T01:53:49.000Z</StartTime>
<EndTime>2016-07-30T01:53:59.000Z</EndTime>
<RemoteAddr>10.101.194.148:57577</RemoteAddr>
</LiveRecord>
<LiveRecord>
<StartTime>2016-07-30T01:54:04.000Z</StartTime>
<EndTime>2016-07-30T01:54:14.000Z</EndTime>
<RemoteAddr>10.101.194.148:57632</RemoteAddr>
</LiveRecord>
</LiveChannelHistory>