DescribeRealtimeNetwork

Last updated: 2021-10-27 16:01:50
This document is currently invalid. Please refer to the documentation page of the product.

1. API Description

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

This API is used to query the network conditions of an SDKAppID, including upstream and downstream packet loss, in the last 24 hours on a per-minute basis. The query period must be 1-60 minutes.

A maximum of 1 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: DescribeRealtimeNetwork.
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 Integer Query start time in the format of UNIX timestamp, such as 1588031999s, which is a point in time in the last 24 hours.
EndTime Yes Integer Query end time in the format of local UNIX timestamp, such as 1588031999s.
SdkAppId Yes String User sdkappid
DataType.N No Array of String Type of data to query
sendLossRateRaw: upstream packet loss rate;
recvLossRateRaw: downstream packet loss rate.

3. Output Parameters

Parameter Name Type Description
Data Array of RealtimeData Data returned by query
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying real-time network conditions

This example shows you how to query network performance metrics such as upstream and downstream packet loss in the last 24 hours.

Input Example

https://trtc.tencentcloudapi.com/?Action=DescribeRealtimeNetwork
&SdkAppId=1400188366
&StartTime=1587879309
&EndTime=1587882309
&<Common request parameters>

Output Example

{
  "Response": {
    "Data": [
      {
        "Content": [
          {
            "Time": 1587879300,
            "Value": 0
          },
          {
            "Time": 1587879360,
            "Value": 0
          },
          {
            "Time": 1587879420,
            "Value": 0
          },
          {
            "Time": 1587879480,
            "Value": 0
          },
          {
            "Time": 1587879540,
            "Value": 0
          },
          {
            "Time": 1587879600,
            "Value": 0
          },
          {
            "Time": 1587879660,
            "Value": 0
          },
          {
            "Time": 1587879720,
            "Value": 0
          },
          {
            "Time": 1587879780,
            "Value": 0
          },
          {
            "Time": 1587879840,
            "Value": 0
          },
          {
            "Time": 1587879900,
            "Value": 0
          },
          {
            "Time": 1587879960,
            "Value": 0
          },
          {
            "Time": 1587880020,
            "Value": 0
          },
          {
            "Time": 1587880080,
            "Value": 0
          },
          {
            "Time": 1587880140,
            "Value": 0
          },
          {
            "Time": 1587880200,
            "Value": 0
          },
          {
            "Time": 1587880260,
            "Value": 0
          },
          {
            "Time": 1587880320,
            "Value": 0
          },
          {
            "Time": 1587880380,
            "Value": 0
          },
          {
            "Time": 1587880440,
            "Value": 0
          },
          {
            "Time": 1587880500,
            "Value": 0
          },
          {
            "Time": 1587880560,
            "Value": 0
          },
          {
            "Time": 1587880620,
            "Value": 0
          },
          {
            "Time": 1587880680,
            "Value": 0
          },
          {
            "Time": 1587880740,
            "Value": 0
          },
          {
            "Time": 1587880800,
            "Value": 0
          },
          {
            "Time": 1587880860,
            "Value": 0
          },
          {
            "Time": 1587880920,
            "Value": 0
          },
          {
            "Time": 1587880980,
            "Value": 0
          },
          {
            "Time": 1587881040,
            "Value": 0
          },
          {
            "Time": 1587881100,
            "Value": 0
          },
          {
            "Time": 1587881160,
            "Value": 0
          },
          {
            "Time": 1587881220,
            "Value": 0
          },
          {
            "Time": 1587881280,
            "Value": 0
          },
          {
            "Time": 1587881340,
            "Value": 0
          },
          {
            "Time": 1587881400,
            "Value": 0
          },
          {
            "Time": 1587881460,
            "Value": 0
          },
          {
            "Time": 1587881520,
            "Value": 0
          },
          {
            "Time": 1587881580,
            "Value": 0
          },
          {
            "Time": 1587881640,
            "Value": 0
          },
          {
            "Time": 1587881700,
            "Value": 0
          },
          {
            "Time": 1587881760,
            "Value": 0
          },
          {
            "Time": 1587881820,
            "Value": 0
          },
          {
            "Time": 1587881880,
            "Value": 0
          },
          {
            "Time": 1587881940,
            "Value": 0
          },
          {
            "Time": 1587882000,
            "Value": 0
          },
          {
            "Time": 1587882060,
            "Value": 0
          },
          {
            "Time": 1587882120,
            "Value": 0
          },
          {
            "Time": 1587882180,
            "Value": 0
          },
          {
            "Time": 1587882240,
            "Value": 0
          }
        ],
        "DataType": "sendLossRateRaw"
      },
      {
        "Content": [
          {
            "Time": 1587879300,
            "Value": 0
          },
          {
            "Time": 1587879360,
            "Value": 0
          },
          {
            "Time": 1587879420,
            "Value": 0
          },
          {
            "Time": 1587879480,
            "Value": 0
          },
          {
            "Time": 1587879540,
            "Value": 0
          },
          {
            "Time": 1587879600,
            "Value": 0
          },
          {
            "Time": 1587879660,
            "Value": 0
          },
          {
            "Time": 1587879720,
            "Value": 0
          },
          {
            "Time": 1587879780,
            "Value": 0
          },
          {
            "Time": 1587879840,
            "Value": 0
          },
          {
            "Time": 1587879900,
            "Value": 0
          },
          {
            "Time": 1587879960,
            "Value": 0
          },
          {
            "Time": 1587880020,
            "Value": 0
          },
          {
            "Time": 1587880080,
            "Value": 0
          },
          {
            "Time": 1587880140,
            "Value": 0
          },
          {
            "Time": 1587880200,
            "Value": 0
          },
          {
            "Time": 1587880260,
            "Value": 0
          },
          {
            "Time": 1587880320,
            "Value": 0
          },
          {
            "Time": 1587880380,
            "Value": 0
          },
          {
            "Time": 1587880440,
            "Value": 0
          },
          {
            "Time": 1587880500,
            "Value": 0
          },
          {
            "Time": 1587880560,
            "Value": 0
          },
          {
            "Time": 1587880620,
            "Value": 0
          },
          {
            "Time": 1587880680,
            "Value": 0
          },
          {
            "Time": 1587880740,
            "Value": 0
          },
          {
            "Time": 1587880800,
            "Value": 0
          },
          {
            "Time": 1587880860,
            "Value": 0
          },
          {
            "Time": 1587880920,
            "Value": 0
          },
          {
            "Time": 1587880980,
            "Value": 0
          },
          {
            "Time": 1587881040,
            "Value": 0
          },
          {
            "Time": 1587881100,
            "Value": 0
          },
          {
            "Time": 1587881160,
            "Value": 0
          },
          {
            "Time": 1587881220,
            "Value": 0
          },
          {
            "Time": 1587881280,
            "Value": 0
          },
          {
            "Time": 1587881340,
            "Value": 0
          },
          {
            "Time": 1587881400,
            "Value": 0
          },
          {
            "Time": 1587881460,
            "Value": 0
          },
          {
            "Time": 1587881520,
            "Value": 0
          },
          {
            "Time": 1587881580,
            "Value": 0
          },
          {
            "Time": 1587881640,
            "Value": 0
          },
          {
            "Time": 1587881700,
            "Value": 0
          },
          {
            "Time": 1587881760,
            "Value": 0
          },
          {
            "Time": 1587881820,
            "Value": 0
          },
          {
            "Time": 1587881880,
            "Value": 0
          },
          {
            "Time": 1587881940,
            "Value": 0
          },
          {
            "Time": 1587882000,
            "Value": 0
          },
          {
            "Time": 1587882060,
            "Value": 0
          },
          {
            "Time": 1587882120,
            "Value": 0
          },
          {
            "Time": 1587882180,
            "Value": 0
          },
          {
            "Time": 1587882240,
            "Value": 0
          }
        ],
        "DataType": "recvLossRateRaw"
      }
    ],
    "RequestId": "bfd7d2b2-2e02-4723-af92-0f66e4fd517c"
  }
}

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.HttpParaseFalied Failed to parse the HTTP request.
InternalError.InterfaceErr API error.
InternalError.MethodErr Unsupported method.
InternalError.MonitorQueryErr Failed to query seconds-level monitoring data.
InvalidParameter Invalid parameter.
InvalidParameter.BodyParamsError Failed to parse the body parameter.
InvalidParameter.EndTs Invalid EndTs.
InvalidParameter.QueryScaleOversize The range for query exceeded the limit.
InvalidParameter.SdkAppId SdkAppId is incorrect.
InvalidParameter.StartTimeExpire The start time for query exceeded the limit.
InvalidParameter.StartTs Invalid StartTs.
MissingParameter Missing parameter.
MissingParameter.EndTs endTS_s is missing.
MissingParameter.SdkAppId SdkAppId is missing.
MissingParameter.StartTs startTS_s is missing.