Queries transcoding data for a specified domain name at the app and stream granularity.
Operation description
Maximum query span: 24 hours.
Minimum query granularity: 5 minutes.
Maximum query range: data from the last 31 days.
QPS limit
The single-user QPS limit for this API is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamTranscodeMetricData |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
The domain name. Only a single domain name can be queried at a time. |
example.com |
| StartTime |
string |
Yes |
The start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2023-06-11T02:46:40Z |
| EndTime |
string |
Yes |
The end time. The end time must be later than the start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2023-06-11T03:46:40Z |
| AppName |
string |
No |
The application name. |
app |
| StreamName |
string |
No |
The stream name. |
stream |
| NextPageToken |
string |
No |
The paged query token. Each query returns a maximum of 5,000 rows of data. If the data to be queried exceeds 5,000 rows, the response provides the start index for the next query. Pass this token in the request to continue querying data from the row after the last row returned in the previous query. This token is used for paging. |
UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0= |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| DomainName |
string |
The domain name. |
example.com |
| EndTime |
string |
The end time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2023-06-11T02:46:40Z |
| NextPageToken |
string |
The paged query token. Each query returns a maximum of 5,000 rows of data. If the data to be queried exceeds 5,000 rows, the response provides the start index for the next query. Pass this token in the request to continue querying data from the row after the last row returned in the previous query. This token is used for paging. |
UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0= |
| PageSize |
integer |
The number of returned data rows. |
5000 |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
| StartTime |
string |
The start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2023-06-11T03:46:40Z |
| StreamDetailData |
object |
||
| StreamData |
array<object> |
The returned data set. |
|
|
object |
The stream data. |
||
| AppName |
string |
The application name. |
app |
| Duration |
integer |
The duration. Unit: seconds. |
300 |
| Fps |
string |
The frame rate. Valid values:
|
high |
| Region |
string |
The region. |
cn-shanghai |
| Resolution |
string |
The resolution. Valid values:
Valid values:
|
4K |
| StreamName |
string |
The stream name. |
stream |
| TimeStamp |
string |
The start time of the time slice. |
2023-06-11T02:45:00Z |
| TranscodeType |
string |
The transcoding type. Valid values:
Valid values:
|
H264STD |
Examples
Success response
JSON format
{
"DomainName": "example.com",
"EndTime": "2023-06-11T02:46:40Z",
"NextPageToken": "UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0=",
"PageSize": 5000,
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
"StartTime": "2023-06-11T03:46:40Z\n",
"StreamDetailData": {
"StreamData": [
{
"AppName": "app",
"Duration": 300,
"Fps": "high",
"Region": "cn-shanghai",
"Resolution": "4K",
"StreamName": "stream",
"TimeStamp": "2023-06-11T02:45:00Z",
"TranscodeType": "H264STD"
}
]
}
}
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 | InvalidTime.Malformed | Specified StartTime or EndTime is malformed. | |
| 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 | InvalidPageToken | The token of page is invalid. | The specified paging token is incorrect. Specify the correct token returned by the last query and confirm that your request parameters are not modified. |
| 400 | InvalidAppName.Mismatch | The AppName param must be passed. | The AppName parameter does not match. Make sure that you specify the correct AppName. |
| 400 | InvalidStreamProtocol.NotSupport | The specified stream protocol is not support. | |
| 400 | InvalidStreamName.LengthTooLong | The specified stream name is too long. | |
| 400 | InvalidAppName.LengthTooLong | The specified app name is too long. | |
| 400 | InvalidTime.ValueNotSupported | Specified Time is malformed. | The specified time is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.