Querying HTTP Attack Distribution Data
Function
This API is used to query HTTP attack distribution data.
URI
GET /v1/edgesec/stat/http-attack-distribution
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
enterprise_project_id |
No |
String |
Obtain the enterprise project ID by calling the ListEnterpriseProject API of Enterprise Project Management Service (EPS). The default value is 0. |
domain_name |
No |
String |
Domain name. |
stat_type |
Yes |
String |
Type of a security statistic metric. For example, req_num (number of requests) and bw (bandwidth). Currently, only req_num is supported. |
group_by |
Yes |
String |
Currently, the value can be action (protection action) or attack_type (attack type). |
start_time |
Yes |
Long |
Start time, which is a timestamp in seconds. |
end_time |
Yes |
Long |
End time, which is a timestamp in seconds. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Tenant token |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
stat_type |
String |
Security statistics metric type |
group_by |
String |
Statistics grouping dimension |
stat_num |
Long |
Statistical quantity |
values |
Array of CommonStatItem objects |
Statistics array |
start_time |
Long |
Start time |
end_time |
Long |
End time |
Parameter |
Type |
Description |
---|---|---|
key |
String |
Subcategory corresponding to the request parameter group_by. For example, in the API for querying the HTTP attack distribution statistics, if group_by is action, the key can be log, block, captcha, or js_challenge. In the API for querying top HTTP attack statistics, if group_by is url, the key can be the requested URL, for example, /abc. |
value |
Long |
Number of attack requests |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code |
error_msg |
String |
Error description |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Request successful. |
400 |
Request failed. |
401 |
The token does not have required permissions. |
500 |
Internal server error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot