All Products
Search
Document Center

Cloud Firewall:DescribeInternetTrafficTrend

Last Updated:Sep 02, 2024

Queries the trends of Internet traffic.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-cloudfirewall:DescribeInternetTrafficTrendget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpdeprecatedstringNo

The IP address of the access source.

101.80.171.196
LangstringNo

The language of the content in the request and response. Valid values:

  • zh (default): Chinese
  • en: English
zh
DirectionstringNo

The direction of the internet traffic.

Valid values:

  • in: inbound traffic
  • out: outbound traffic
in
StartTimestringYes

The beginning of the time range to query. The value is a UNIX timestamp. Unit: seconds.

1670307484
EndTimestringYes

The end of the time range to query. The value is a UNIX timestamp. Unit: seconds.

1674958929
SourceCodestringYes

The source code.

yundun
SrcPublicIPstringNo

The public IP address of the source.

47.112.210.136
SrcPrivateIPstringNo

The private IP address of the source.

10.100.134.60
TrafficTypestringNo

The type of the traffic that is captured. Valid values:

  • max (default): peak traffic
  • avg: average traffic
max

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

MaxTotalBpslong

The total maximum inbound and outbound network throughput, which indicates the maximum number of bits that are sent inbound and outbound per second. Unit: bit/s.

89783147
MaxBandwidthTimelong

The timestamp generated when the bandwidth reaches the peak value. The value is a UNIX timestamp. Unit: seconds.

1672736400
AvgInBpslong

The average inbound network throughput, which indicates the average number of bits that are sent inbound per second. Unit: bit/s.

6114152
RequestIdstring

The request ID.

C7E837BE-0379-565E-B7B4-DE595C8D337C
MaxInBpslong

The maximum inbound network throughput, which indicates the maximum number of bits that are sent inbound per second. Unit: bit/s.

10275643
MaxOutBpslong

The maximum outbound network throughput, which indicates the maximum number of bits that are sent outbound per second. Unit: bit/s.

395188
AvgSessionlong

The average number of requests.

79013
MaxSessionlong

The number of requests during the peak hour of the network throughout.

931641
AvgTotalBpslong

The total average inbound and outbound network throughput, which indicates the average number of bits that are sent inbound and outbound per second. Unit: bit/s.

2306
AvgOutBpslong

The average outbound network throughput, which indicates the average number of bits that are sent outbound per second. Unit: bit/s.

70148993
TotalInByteslong

The inbound network throughput, which indicates the total number of bytes that are sent inbound. Unit: bytes.

41536824243873
TotalOutByteslong

The outbound network throughput, which indicates the total number of bytes that are sent outbound. Unit: bytes.

2660894567178
TotalByteslong

The total inbound and outbound network throughput, which indicates the total number of bytes that are sent inbound and outbound. Unit: bytes.

963227674958
TotalSessionlong

The total number of requests.

1061449
TotalExceedByteslong

The total volume of excess traffic.

4243873
MaxDayExceedByteslong

The maximum volume of excess traffic allowed per day.

873
DataListarray<object>

The statistics on traffic.

object
SessionCountlong

The number of requests.

27
Timeinteger

The time when traffic is generated. The value is a UNIX timestamp. Unit: seconds.

If processing is not complete at this point in time, -1 is returned for all other fields.

1659405600
InBpslong

The inbound network throughput, which indicates the number of bits that are sent inbound per second. Unit: bit/s.

187
InPpslong

The inbound network throughput, which indicates the number of packets that are sent inbound per second. Unit: packets per second (pps).

2
NewConnlong

The number of new connections.

27
OutByteslong

The outbound network throughput, which indicates the total number of bytes that are sent outbound. Unit: bytes.

1123
OutPpslong

The outbound network throughput, which indicates the number of packets that are sent outbound per second. Unit: pps.

2
InByteslong

The inbound network throughput, which indicates the total number of bytes that are sent inbound. Unit: bytes.

235
OutBpslong

The outbound network throughput, which indicates the number of bits that are sent outbound per second. Unit: bit/s.

45
TotalBpslong

The total outbound and inbound network throughput, which indicates the total number of bits that are sent inbound and outbound per second. Unit: bit/s.

323

Examples

Sample success responses

JSONformat

{
  "MaxTotalBps": 89783147,
  "MaxBandwidthTime": 1672736400,
  "AvgInBps": 6114152,
  "RequestId": "C7E837BE-0379-565E-B7B4-DE595C8D337C",
  "MaxInBps": 10275643,
  "MaxOutBps": 395188,
  "AvgSession": 79013,
  "MaxSession": 931641,
  "AvgTotalBps": 2306,
  "AvgOutBps": 70148993,
  "TotalInBytes": 41536824243873,
  "TotalOutBytes": 2660894567178,
  "TotalBytes": 963227674958,
  "TotalSession": 1061449,
  "TotalExceedBytes": 4243873,
  "MaxDayExceedBytes": 873,
  "DataList": [
    {
      "SessionCount": 27,
      "Time": 1659405600,
      "InBps": 187,
      "InPps": 2,
      "NewConn": 27,
      "OutBytes": 1123,
      "OutPps": 2,
      "InBytes": 235,
      "OutBps": 45,
      "TotalBps": 323
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-16The response structure of the API has changedView Change Details
2023-09-20The response structure of the API has changedView Change Details