tencent cloud

フィードバック

DescribeTrtcMcuTranscodeTime

最終更新日:2021-11-09 10:14:15

1. API Description

Domain name for API request: trtc.tencentcloudapi.com.

This API is used to query billable relaying and transcoding durations.

  • If the period queried is 1 day or shorter, the statistics returned are on a 5-minute basis. If the period queried is longer than 1 day, the statistics returned are on a daily basis.
  • The period queried in a request cannot be longer than 31 days.
  • If you query the statistics of the current day, the statistics returned may be inaccurate due to the delay in data collection.
  • In the daily pay-as-you-go mode, bills for a day are generated the next morning. Therefore, we recommend you query the statistics after 9 AM the next day.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Querying billable relaying and transcoding durations

This example shows you how to query billable relaying and transcoding durations for a period longer than 1 day.

Input Example

https://trtc.tencentcloudapi.com/?Action=DescribeTrtcMcuTranscodeTime
&SdkAppId=1400123456
&StartTime=2020-09-07
&EndTime=2020-09-08
&<Common request parameters>

Output Example

{
  "Response": {
    "Usages": [
      {
        "SdkAppId": "1400123456",
        "TotalNum": 1,
        "SdkAppIdTranscodeTimeUsages": [
          {
            "AudioTime": 1,
            "VideoTimeHd": 1,
            "VideoTimeFhd": 1,
            "VideoTimeSd": 1,
            "TimeKey": "xx"
          }
        ]
      }
    ],
    "RequestId": "644956b8-9f7c-44c5-b833-31d91dba1b23"
  }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.
お問い合わせ

カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

テクニカルサポート

さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

電話サポート(24 時間365日対応)