You can call the DescribeLiveDomainStreamTranscodeData operation to query transcoding usage data for a domain name.
Operation description
This operation queries transcoding usage data for specified time intervals.
You can query data for multiple domain names in a single call by separating the domain names with commas (,).
You can query data for the last 90 days.
The data is available at a time granularity of one hour or one day.
For more information about the billing tiers for different transcoding types and resolutions, see Live stream transcoding billing.
QPS limit
The queries per second (QPS) limit for this operation is 20 for each user. If the number of calls per second exceeds this limit, throttling is triggered. This may affect your business. We recommend that you plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveDomainStreamTranscodeData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
No |
The streaming domain name to query.
|
example.com |
| StartTime |
string |
Yes |
The start of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
|
2017-12-10T20:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-12-10T22:00:00Z |
| Precision |
string |
No |
The time precision of the query. Valid values:
|
min |
| Interval |
string |
No |
The time granularity of the query. Unit: seconds. Valid values:
Note
If you do not specify this parameter, the data is returned by hour by default. |
3600 |
| Split |
string |
No |
The key to group data by. Valid values:
You can specify one or more keys. Separate multiple keys with commas (,). The default value is |
domain |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
3C6CCEC4-6B88-4D4A-93E4-D47B****** |
| TranscodeDataList |
object |
||
| TranscodeData |
array<object> |
The transcoding data for each time interval. |
|
|
object |
|||
| TanscodeType |
string |
The transcoding type. Valid values: Note
This parameter is returned only when you set the Split parameter to transcode_type.
|
H264STD |
| Domain |
string |
The streaming domain name. Note
This parameter is returned only when you set the Split parameter to domain. |
example.com |
| Region |
string |
The region where the domain name is located. Valid values: Note
This parameter is returned only when you set the Split parameter to region.
|
cn-beijing |
| Duration |
integer |
The duration. Unit: minutes. |
2000 |
| TimeStamp |
string |
The start time of the time slice. |
2017-12-10T20:00:00Z |
| Fps |
string |
The frame rate. Note
This parameter is returned only when you set the Split parameter to fps. |
normal |
| Resolution |
string |
The resolution. Valid values: Note
This parameter is returned only when you set the Split parameter to resolution.
|
HD |
Examples
Success response
JSON format
{
"RequestId": "3C6CCEC4-6B88-4D4A-93E4-D47B******",
"TranscodeDataList": {
"TranscodeData": [
{
"TanscodeType": "H264STD",
"Domain": "example.com",
"Region": "cn-beijing",
"Duration": 2000,
"TimeStamp": "2017-12-10T20:00:00Z",
"Fps": "normal",
"Resolution": "HD"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 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. Make sure that the start and end times match. |
| 400 | InvalidTimeSpan | The time span exceeds the limit. | The time span exceeds the limit. Please refer to the API documentation to specify a reasonable time span. |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.