Domain name for API request: trtc.tencentcloudapi.com.
This API is used to query billable relaying and transcoding durations.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: DescribeTrtcMcuTranscodeTime. |
Version | Yes | String | Common parameter. The value used for this API: 2019-07-22. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. This API only supports: ap-guangzhou |
StartTime | Yes | Date | Query start date in the format of YYYY-MM-DD |
EndTime | Yes | Date | Query end date in the format of YYYY-MM-DD The period queried in a request cannot be longer than 31 days. |
SdkAppId | No | Integer | Application ID, which is optional. If it is specified, duration statistics for the specified application are returned; otherwise, the total durations of all applications are returned. |
Parameter Name | Type | Description |
---|---|---|
Usages | Array of OneSdkAppIdTranscodeTimeUsagesInfo | Duration statistics of the queried application(s) |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to query billable relaying and transcoding durations for a period longer than 1 day.
https://trtc.tencentcloudapi.com/?Action=DescribeTrtcMcuTranscodeTime
&SdkAppId=1400123456
&StartTime=2020-09-07
&EndTime=2020-09-08
&<Common request parameters>
{
"Response": {
"Usages": [
{
"SdkAppId": "1400123456",
"TotalNum": 1,
"SdkAppIdTranscodeTimeUsages": [
{
"AudioTime": 1,
"VideoTimeHd": 1,
"VideoTimeFhd": 1,
"VideoTimeSd": 1,
"TimeKey": "xx"
}
]
}
],
"RequestId": "644956b8-9f7c-44c5-b833-31d91dba1b23"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InternalError.DBError | An error occurred while querying the database. |
InvalidParameter | Invalid parameter. |
InvalidParameter.SdkAppId | SdkAppId is incorrect. |
この記事はお役に立ちましたか?