Queries the real-time traffic of a user by traffic type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeUserTraffic |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID of the WAF instance. Note
You can call the DescribeInstance operation to query instance ID of the WAF instance. |
waf_v3prepaid_public_cn-*** |
| StartTimestamp |
integer |
No |
The beginning of the time range to query. |
1665331200 |
| EndTimestamp |
integer |
No |
The end of the time range to query. |
1665386280 |
| Type |
string |
No |
The type of real-time user traffic. Valid values:
|
qps |
| Interval |
integer |
No |
The time interval. Unit: seconds. |
3600 |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-ae*******i |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
EC10C9EA-A367-52D5-***-*** |
| UserTraffic |
array<object> |
The list of user traffic data. |
|
|
object |
The user traffic data. |
||
| Pv |
integer |
The usage. |
1024 |
| Index |
integer |
The sequence number 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.