DescribeLiveDomainStreamTranscodeData
Queries transcoding usage data for 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 for up to 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 the transcoding bill section of Live stream transcoding billing.
QPS limit
The QPS limit for a single user on this operation is 20 calls per second. If this limit is exceeded, the 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 ingest domain 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 not specified, 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 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.