Queries the top 5 statistics of security events aggregated by different statistical objects and sorted in descending order.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeThreatEventTopMetric |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Metric |
string |
Yes |
The statistical metric. Different values of Metric correspond to different statistical objects. Valid values:
Valid values:
|
time |
| EventId |
string |
Yes |
The ID of the security event. |
0b7ab137a065aab7656986***11db |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
You can call DescribeInstance to query the ID of the current WAF instance. |
waf_elasticity-cn-0xldbqt**** |
| 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-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TopMetrics |
array<object> |
The list of statistics. |
|
|
object |
The statistics. |
||
| Cnt |
integer |
The number of attacks. |
20 |
| Value |
string |
The attack value. The meaning of this field varies depending on the value of Metric.
|
115.28.209.212 |
| Country |
string |
The country to which the source IP address of the attack belongs. Note
This field returns a meaningful value only when the statistical object (Metric) is set to source IP address (src). |
CN |
| Region |
string |
The region to which the source IP address of the attack belongs. Note
This field returns a meaningful value only when the statistical object (Metric) is set to source IP address (src). |
cn-hangzhou |
| RequestId |
string |
The request ID. |
12EF3845-CCEB-4B84-AE60-2B49B*****EE5 |
Examples
Success response
JSON format
{
"TopMetrics": [
{
"Cnt": 20,
"Value": "115.28.209.212",
"Country": "CN",
"Region": "cn-hangzhou"
}
],
"RequestId": "12EF3845-CCEB-4B84-AE60-2B49B*****EE5"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.