Queries the transcoding usage data for one or more domain names.
Usage notes
You can call this operation to collect the transcoding usage data at each time interval.
You can specify multiple domain names by separating them with commas (,).
You can query data in the last 90 days.
The time granularity of data is 1 hour or 1 day.
For information about the billing of different transcoding types and transcoding resolutions, see the description about billing of different transcoding specifications in transcoding bills in the Billing of live stream transcoding section of the ApsaraVideo Live pricing page.
QPS limit
You can call this operation up to 20 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | DescribeLiveDomainStreamTranscodeData | The operation that you want to perform. Set the value to DescribeLiveDomainStreamTranscodeData. |
DomainName | String | No | example.com | The main streaming domain for which you want to query data.
|
StartTime | String | Yes | 2017-12-10T20:00:00Z | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
|
EndTime | String | Yes | 2017-12-10T22:00:00Z | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
Precision | String | No | min | The time precision of the query. Valid values:
|
Interval | String | No | 3600 | The time granularity of the query. Unit: seconds. Valid values:
Note If you do not specify this parameter, the time granularity of 1 hour is used by default. |
Split | String | No | domain | The key that is used to group data. Valid values:
You can specify one or more keys. If you specify multiple keys, separate them with commas (,). Default value: |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F | The request ID. |
TranscodeDataList | Array of TranscodeData | The transcoding usage data returned at each interval. | |
TranscodeData | |||
TanscodeType | String | H264STD | The transcoding type. Valid values: Note This parameter takes effect only if the request parameter Split is set to transcode_type.
|
Domain | String | example.com | The main streaming domain. Note This parameter takes effect only if the request parameter Split is set to domain. |
Region | String | cn-beijing | The ID of the region in which the domain name resides. Valid values: Note This parameter takes effect only if the request parameter Split is set to region.
|
Duration | Integer | 2000 | The duration. Unit: minutes. |
TimeStamp | String | 2017-12-10T20:00:00Z | The timestamp of the data returned. |
Fps | String | normal | The frame rate. Note This parameter takes effect only if the request parameter Split is set to fps. |
Resolution | String | HD | The resolution. Valid values: Note This parameter takes effect only if the request parameter Split is set to resolution.
|
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=DescribeLiveDomainStreamTranscodeData
&StartTime=2017-12-10T20:00:00Z
&EndTime=2017-12-10T22:00:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<DescribeLiveDomainStreamTranscodeDataResponse>
<RequestId>3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F</RequestId>
<TranscodeDataList>
<TranscodeData>
<Fps>normal</Fps>
<Region>cn-beijing</Region>
<Duration>2000</Duration>
<TanscodeType>H264STD</TanscodeType>
<Domain>example.com</Domain>
<TimeStamp>2017-12-10T20:00:00Z</TimeStamp>
<Resolution>HD</Resolution>
</TranscodeData>
</TranscodeDataList>
</DescribeLiveDomainStreamTranscodeDataResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DescribeLiveDomainStreamTranscodeDataResponse" : {
"RequestId" : "3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F",
"TranscodeDataList" : {
"TranscodeData" : {
"Fps" : "normal",
"Region" : "cn-beijing",
"Duration" : 2000,
"TanscodeType" : "H264STD",
"Domain" : "example.com",
"TimeStamp" : "2017-12-10T20:00:00Z",
"Resolution" : "HD"
}
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The format of the start time is invalid. Check whether the value of the StartTime parameter is valid. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The format of the end time is invalid. Check whether the value of the EndTime parameter is valid. |
400 | InvalidParamPrecision | The parameter Precision is invalid, please check StartTime and EndTime or Precision. | The Precision parameter is invalid. Check the value of the StartTime, EndTime, or Precision parameter. |
400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | The end time does not match the start time. Check whether the value of the EndTime parameter matches. |
400 | InvalidTimeSpan | The time span exceeds the limit. | The time range exceeds the limit. Configure a valid time range to query. |
400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
For a list of error codes, see Service error codes.
Special error codes
Error code | Error message | HTTP status code | Description |
Throttling | Request was denied due to request throttling. | 503 | The request was denied due to traffic throttling. |
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | The domain name does not exist or does not belong to your account. |