Domain name for API request: trtc.tencentcloudapi.com.
This API is used to query usage data grouped by room.
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 Params. The value used for this API: DescribeTrtcRoomUsage. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-22. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-guangzhou, ap-singapore. |
SdkAppid | Yes | Integer | The SDKAppID of the room. |
StartTime | Yes | String | The start time in the format of YYYY-MM-DD HH:MM (accurate to the minute). |
EndTime | Yes | String | The end time in the format of YYYY-MM-DD HH:MM . The start and end time cannot be more than 24 hours apart. |
Parameter Name | Type | Description |
---|---|---|
Data | String | The usage data grouped by room, in CSV format. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query usage data grouped by room.
POST / HTTP/1.1
Host: trtc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTrtcRoomUsage
<Common request parameters>
{
"StartTime": "2023-01-06 00:00",
"EndTime": "2023-01-06 10:00",
"SdkAppid": 1400017192
}
{
"Response": {
"RequestId": "68fccf1c-c2c7-466a-9f14-1db4bed6054b",
"Data": "RoomId,Audio,SD,hd,FullHD,2K,4K
test_room,1,2,3,4,5,6
"
}
}
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 |
---|---|
FailedOperation.SdkAppIdNotExist | The application ID does not exist. |
InternalError.DBError | An error occurred while querying the database. |
InvalidParameter | Parameter error. |
この記事はお役に立ちましたか?