Querying Request Statistics and Attack Statistics in a Specified Time Range
Function Description
This API is used to query request statistics and attack statistics in a specified time range.
URI
- URI format
GET /v1/{project_id}/waf/event/timeline?from={from}&to={to}&timezone={timezone}&hosts={hostids}
An example of a URI is as follows:
GET /v1/3ac26c59e15a4a11bb680a103a29ddb6/waf/event/attack/type?from=1543976973635&to=1563976973635&hosts=3211757cafa3437aae24d760022e79ba&hosts=93029844064b43739b51ca63036fbc4b&hosts=34fe5f5c60ef4e43a9975296765d1217
- Parameter description
Table 1 Path parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
from
Yes
Long
Specifies the start time (UTC) in milliseconds. For example, 1548172800000.
to
Yes
Long
Specifies the end time (UTC) in milliseconds. For example, 1548431999000.
timezone
No
String
Time zone. For example, the time zone for London is +00:00. The default value is +00:00.
hosts
No
Array
Specifies the domain IDs.
Request
Request parameters
None
Response
Example
{ "requests": [ {"time": 1499817600, "num": 123400}, {"time": 1499817601, "num": 123401}, {"time": 1499817602, "num": 123402} ], "attacks": [ {"time": 1499817600, "num": 1234}, {"time": 1499817601, "num": 1235}, {"time": 1499817602, "num": 1236} ] }
Status Code
For details about error status codes, see Status 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