全部产品
Search
文档中心

云防火墙:DescribeVpcFirewallTrafficTrend - 获取VPC防火墙流量趋势

更新时间:Jul 08, 2026

获取VPC防火墙流量趋势

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

Lang

string

请求和接收消息的语言类型。取值:

  • zh(默认):表示中文

  • en:表示英文

枚举值:

  • en :

    英文

  • zh :

    中文

zh

StartTime

string

开始时间。使用秒级时间戳格式表示。

1780626107

EndTime

string

结束时间。使用秒级时间戳格式表示。

1767493189

VpcId

string

VPC 实例 ID。

vpc-j6cnofg4lg1ujx3xj****

PeerVpcId

string

对端 VPC 的实例 ID。

vpc-j6c7mscdg4hfqanfi****

PrivateIP

string

私网 IP。

10.21.186.XXX

返回参数

名称

类型

描述

示例值

object

MaxTotalBps

integer

出方向和入方向总的峰值网络吞吐率(每秒发送多少 bit)。单位:bps。

61947852

AvgInBps

integer

入方向的平均网络吞吐率(每秒发送多少 bit)。单位:bps。

1264110

RequestId

string

结果的请求 ID。

45F8B9E6-8583-56B3-A127-1B421C9E****

MaxInBps

integer

入方向的峰值网络吞吐率(每秒发送多少 bit)。单位:bps。

1436

MaxOutBps

integer

出方向的峰值网络吞吐率(每秒发送多少 bit)。单位:bps。

2128

AvgSession

integer

平均请求次数。

1995

MaxSession

integer

峰值请求次数。

2003

AvgTotalBps

integer

出方向和入方向总的平均网络吞吐率(每秒发送多少 bit)。单位:bps。

34291

AvgOutBps

integer

出方向的平均网络吞吐率(每秒发送多少 bit)。单位:bps。

68915

MaxBandwidthTime

integer

峰值带宽发生时间戳。使用秒级时间戳格式表示。

1768008060

TotalInBytes

integer

入方向的网络吞吐量(总共发送多少字节)。单位:Byte。

2659635037

TotalOutBytes

integer

出方向的网络吞吐量(总共发送多少字节)。单位:Byte。

399762701

TotalBytes

integer

总流量,单位:Byte。

141688156232

TotalSession

integer

总请求次数。

1078757

DataList

array<object>

返回数据列表。

object

数据列表。

SessionCount

integer

会话数。

27

Time

integer

流量发生的时间。使用秒级时间戳格式表示。

1758470400

InBps

integer

入方向带宽,单位:bps。

187

InPps

integer

入方向包转发率,单位:pps。

2

NewConn

integer

新建连接数。

27

OutBytes

integer

出方向的网络吞吐量(总共发送多少字节)。单位:Byte。

230

OutPps

integer

出方向的网络吞吐率(每秒发送多少个分组数据包)。单位:pps。

2

InBytes

integer

入方向流量,单位 Byte。

32

OutBps

integer

出方向流量,单位 Byte。

45

示例

正常返回示例

JSON格式

{
  "MaxTotalBps": 61947852,
  "AvgInBps": 1264110,
  "RequestId": "45F8B9E6-8583-56B3-A127-1B421C9E****",
  "MaxInBps": 1436,
  "MaxOutBps": 2128,
  "AvgSession": 1995,
  "MaxSession": 2003,
  "AvgTotalBps": 34291,
  "AvgOutBps": 68915,
  "MaxBandwidthTime": 1768008060,
  "TotalInBytes": 2659635037,
  "TotalOutBytes": 399762701,
  "TotalBytes": 141688156232,
  "TotalSession": 1078757,
  "DataList": [
    {
      "SessionCount": 27,
      "Time": 1758470400,
      "InBps": 187,
      "InPps": 2,
      "NewConn": 27,
      "OutBytes": 230,
      "OutPps": 2,
      "InBytes": 32,
      "OutBps": 45
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 ErrorAliUid Aliuid invalid. aliuid无效
400 ErrorTrafficType The traffic type is invalid. 无效的流量类型
400 ErrorVpcId The VPC ID is invalid. 无效的VPCID
400 ErrorIntervalError The interval is invalid. 无效的时间间隔
400 ErrorTimeError The time is invalid. 时间选择错误
400 ErrorDBSelectError A database select error occurred. 内部错误:数据库查询错误
400 ErrorDataTypeError The data type is invalid. 无效的数据类型
400 ErrorMarshalJSON internal error. 内部错误。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情