DescribeInternetTrafficTrend - 获取互联网流量趋势

更新时间:
复制 MD 格式

获取互联网流量趋势。

调试

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

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

yundun-cloudfirewall:DescribeInternetTrafficTrend

get

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

SourceIp deprecated

string

否

访问者源 ip 地址。

101.80.171.196

Lang

string

否

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

  • zh(默认):表示中文

  • en:表示英文

zh

Direction

string

否

互联网流量方向。取值:

  • in:外对内流量访问控制

  • out:内对外流量访问控制

in

StartTime

string

是

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

1670307484

EndTime

string

是

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

1674958929

SourceCode

string

是

溯源码。

yundun

SrcPublicIP

string

否

公网源 IP 地址。

47.112.210.136

SrcPrivateIP

string

否

私网源 IP 地址。

10.100.134.60

TrafficType

string

否

采集的流量类型。取值:

  • max(默认):流量峰值

  • avg:流量均值

max

返回参数

名称

类型

描述

示例值

object

Schema of Response

MaxTotalBps

integer

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

89783147

MaxBandwidthTime

integer

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

1672736400

AvgInBps

integer

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

6114152

RequestId

string

本次调用请求的 ID。

C7E837BE-0379-565E-B7B4-DE595C8D337C

MaxInBps

integer

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

10275643

MaxOutBps

integer

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

395188

AvgSession

integer

平均请求次数。

79013

MaxSession

integer

峰值请求次数。

931641

AvgTotalBps

integer

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

2306

AvgOutBps

integer

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

70148993

TotalInBytes

integer

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

41536824243873

TotalOutBytes

integer

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

2660894567178

TotalBytes

integer

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

963227674958

TotalSession

integer

总请求次数。

1061449

TotalExceedBytes

integer

总超量流量

4243873

MaxDayExceedBytes

integer

最大日超量流量

873

DataList

array<object>

流量统计信息列表。

object

流量统计信息列表。

SessionCount

integer

请求次数。

27

Time

integer

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

若该时间点未加工完成,则其他字段值均为-1。

1659405600

InBps

integer

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

187

InPps

integer

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

2

NewConn

integer

新建连接数。

27

OutBytes

integer

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

1123

OutPps

integer

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

2

InBytes

integer

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

235

OutBps

integer

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

45

TotalBps

integer

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

232

示例

正常返回示例

JSON格式

{
  "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": 232
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 ErrorAliUid Aliuid invalid. aliuid无效
400 ErrorSourceCodeError The source code is invalid. 无效的source code
400 ErrorDirectionError The direction is invalid. 无效的方向
400 ErrorIpFormat The IP address is invalid. 无效的IP
400 ErrorSrcDstIPError SrcPublicIP and DstPublicIP cannot be specified at the same time. 源公网IP和目的公网IP不能同时出现
400 ErrorTrafficType The traffic type is invalid. 无效的流量类型
400 ErrorIntervalError The interval is invalid. 无效的时间间隔
400 ErrorTimeError The time is invalid. The time is invalid.
400 ErrorDataTypeError The data type is invalid. 无效的数据类型
400 ErrorDBSelectError A database select error occurred. 内部错误:数据库查询错误
400 ErrorMarshalJSON internal error. 内部错误。
400 ErrorNotBuyUser Not buy user. 您的账号尚未开通云防火墙服务,无法调用该 API。
400 MissingSourceCode SourceCode is mandatory for this action. 缺少必填参数 SourceCode。请在请求中补充 SourceCode(例如 yundun)后重试。

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

变更历史

更多信息,参考变更详情。