Queries the top five security event metrics, which are aggregated by different objects and sorted in descending order.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Metric |
string |
Yes |
The metric that you want to use for statistics. Each metric corresponds to a different statistical object. Valid values:
Valid values:
|
time |
| EventId |
string |
Yes |
The ID of the security event. |
0b7ab137a065aab7656986***11db |
| InstanceId |
string |
Yes |
The ID of the Web Application Firewall (WAF) instance. Note
Call the DescribeInstance operation to query the ID of the WAF instance. |
waf_elasticity-cn-0xldbqt**** |
| RegionId |
string |
No |
The region where the WAF instance resides. 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 parameter varies based on the value of Metric.
|
115.28.209.212 |
| Country |
string |
The country where the source IP address of the attack is located. Note
This parameter is returned only when Metric is set to src. |
CN |
| Region |
string |
The region where the source IP address of the attack is located. Note
This parameter is returned only when Metric is set to src. |
cn-hangzhou |
| RequestId |
string |
The ID of the request. |
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.