Queries real-time traffic data of different types.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call the DescribeInstance operation to query the ID of the WAF instance. |
waf_v3prepaid_public_cn-*** |
| StartTimestamp |
integer |
No |
The beginning of the time range to query. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1665331200 |
| EndTimestamp |
integer |
No |
The end of the time range to query. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1665386280 |
| Type |
string |
No |
The type of real-time traffic that you want to query. Valid values:
|
qps |
| Interval |
integer |
No |
The time interval. Unit: seconds. |
3600 |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the resource group. |
rg-ae*******i |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
EC10C9EA-A367-52D5-***-*** |
| UserTraffic |
array<object> |
The list of user traffic data. |
|
|
object |
The user traffic data. |
||
| Pv |
integer |
The number of used resources. |
1024 |
| Index |
integer |
The sequence number of the time interval. The value is sorted in chronological order. |
10 |
Examples
Success response
JSON format
{
"RequestId": "EC10C9EA-A367-52D5-***-***\n",
"UserTraffic": [
{
"Pv": 1024,
"Index": 10
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.