DescribeRealtimeNetwork

Last updated: 2020-07-31 11:17:37

1. API Description

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

This API is used to query real-time network status for the last 24 hours according to sdkappid, including upstream and downstream packet losses. The query time range cannot exceed 1 hour.

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 status

This example shows you how to query the network status for the last 24 hours, such as upstream and downstream packet losses.

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

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

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 query time range exceeds 1 hour.
InvalidParameter.SdkAppId SdkAppId is incorrect.
InvalidParameter.StartTimeExpire The query start time is more than 24 hours earlier than now.
InvalidParameter.StartTs Invalid StartTs.
MissingParameter Missing parameter.
MissingParameter.EndTs endTS_s is missing.
MissingParameter.SdkAppId SdkAppId is missing.
MissingParameter.StartTs startTS_s is missing.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help