获取互联网流量趋势。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
SourceIp
deprecated
|
string |
否 |
访问者源 ip 地址。 |
101.80.171.196 |
| Lang |
string |
否 |
请求和接收消息的语言类型。取值:
|
zh |
| Lang |
string |
否 |
请求和接收消息的语言类型。取值:
|
zh |
| Direction |
string |
否 |
互联网流量方向。取值:
|
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 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
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. | 时间选择错误 |
| 400 | ErrorDataTypeError | The data type is invalid. | 无效的数据类型 |
| 400 | ErrorDBSelectError | A database select error occurred. | 内部错误:数据库查询错误 |
| 400 | ErrorMarshalJSON | internal error. | 内部错误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。