Queries the transcoding usage data of a domain name by calling DescribeLiveDomainStreamTranscodeData.
Operation description
You can use this operation to query network bandwidth data for each time interval.
Batch domain name queries are supported. Separate multiple domain names with commas (,).
You can query data from the last 90 days.
The data time granularity is hour or day.
For the billing tiers that correspond to different transcoding types and transcoding resolutions, see the billing tier description for different instance specifications in Live stream transcoding billing.
QPS limit
The single-user QPS limit for this operation is 20 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation appropriately.
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 of the streamer to query.
|
example.com |
| StartTime |
string |
Yes |
The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format 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 in UTC. |
2017-12-10T22:00:00Z |
| Precision |
string |
No |
The time precision of the query. Valid values:
Valid values:
|
min |
| Interval |
string |
No |
The time granularity of the query. Unit: seconds. Valid values:
Note
If this parameter is left empty, the default granularity is by hour. Valid values:
|
3600 |
| Split |
string |
No |
The grouping key. Valid values:
You can specify one or more values. Separate multiple values with commas (,). Default value: |
domain |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
3C6CCEC4-6B88-4D4A-93E4-D47B****** |
| TranscodeDataList |
object |
||
| TranscodeData |
array<object> |
The network bandwidth data for each time interval. |
|
|
object |
|||
| TanscodeType |
string |
The transcoding type. Valid values: Note
This response parameter takes effect only when the Split request parameter is set to transcode_type.
|
H264STD |
| Domain |
string |
The streamer streaming domain. Note
This response parameter takes effect only when the Split request parameter is set to domain. |
example.com |
| Region |
string |
The region to which the domain name belongs. Valid values: Note
This response parameter takes effect only when the Split request parameter is set to region.
|
cn-beijing |
| Duration |
integer |
The duration. Unit: minutes. |
2000 |
| TimeStamp |
string |
The beginning of the time interval. The time is in the yyyy-MM-ddTHH:mm:ssZ format in UTC. |
2017-12-10T20:00:00Z |
| Fps |
string |
The frame rate. Note
This response parameter takes effect only when the Split request parameter is set to fps. |
normal |
| Resolution |
string |
The resolution. Valid values: Note
This response parameter takes effect only when the Split request parameter is set 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.