Querying the Timeline Data of DDoS Attack Statistics
Function
This API is used to query the timeline data of DDoS attack statistics.
URI
GET /v1/edgesec/stat/ddos-attack-timelines
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. |
stat_type |
Yes |
String |
Type of the security statistics metric. Currently, bw and pps are supported. |
group_by |
Yes |
String |
bw corresponds to max_bps and avg_bps, and pps corresponds to max_pps and avg_pps. |
start_time |
Yes |
Long |
Start time |
end_time |
Yes |
Long |
End time |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
stat_type |
String |
Metric type |
group_by |
String |
Group type |
interval |
Integer |
Time granularity (s) |
values |
Array of TimeStatItem objects |
Value array |
Parameter |
Type |
Description |
---|---|---|
key |
Long |
Timestamp, which is left aligned with the time granularity. For example, if the time granularity is 5 minutes and the time range is [19:10,19:15), the timestamp is 19:10. |
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 succeeded. |
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