擷取互連網流量趨勢。
調試
您可以在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. | 內部錯誤。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。