tencent cloud

文档反馈

DescribeTRTCRealTimeQualityData

最后更新时间:2024-03-11 11:06:33

1. API Description

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

Query TRTC Monitoring Dashboard - Real-Time Monitoring Quality Metrics (return the following metrics)
-Video stutter rate
-Audio stutter rate
Note:

  1. To call the API, you need to activate the Monitoring Dashboard Standard Edition and Premium Edition. The Monitoring Dashboard Free Edition does not support calling. For monitoring dashboard version features and billing overview, please visit: https://trtc.io/document/54481.
  2. The query time range depends on the monitoring dashboard function version. The premium edition can query up to 1 hours

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 Params. The value used for this API: DescribeTRTCRealTimeQualityData.
Version Yes String Common Params. The value used for this API: 2019-07-22.
Region No String Common Params. This parameter is not required for this API.
SdkAppId Yes String User SDKAppId (e.g., 1400xxxxxx)
StartTime Yes Integer Start time, unix timestamp, Unit: seconds (Query time range depends on the monitoring dashboard function version, standard edition can query the last 3 hours, premium edition can query the last 12 hours)
EndTime Yes Integer End time, unix timestamp, Unit: seconds
RoomId No String Room ID

3. Output Parameters

Parameter Name Type Description
Data TRTCDataResult TRTC Real- Time Monitoring output parameters
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.

4. Example

Example1 DescribeTRTCRealTimeQualityData

Query TRTC real-time monitoring quality data

Input Example

POST / HTTP/1.1
Host: trtc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTRTCRealTimeQualityData
<Public request parameters>

{
    "StartTime": 1695711343,
    "EndTime": 1695711643,
    "SdkAppId": "1400xxxxxx"
}

Output Example

{
    "Response": {
        "Data": {
            "StatementID": 0,
            "Series": [
                {
                    "Columns": [
                        "time",
                        "videoFreezeRate",
                        "audioFreezeRate"
                    ],
                    "Values": [
                        {
                            "RowValue": [
                                1695711350,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711360,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711370,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711380,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711390,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711400,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711410,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711420,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711430,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711440,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711450,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711460,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711470,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711480,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711490,
                                0,
                                4
                            ]
                        },
                        {
                            "RowValue": [
                                1695711500,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711510,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711520,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711530,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711540,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711550,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711560,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711570,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711580,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711590,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711600,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711610,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711620,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711630,
                                0,
                                0
                            ]
                        },
                        {
                            "RowValue": [
                                1695711640,
                                0,
                                0
                            ]
                        }
                    ]
                }
            ],
            "Total": 1
        },
        "RequestId": "75fegcba14mffq3wl2zz578ml3e-i1a3"
    }
}

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

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.