This topic describes the alert rules for traffic security of API Gateway. You can configure and enable alert rules in the Simple Log Service console. This allows you to monitor the flow security of API Gateway. If an alert is triggered, you can identify the cause and fix the error at the earliest opportunity.
Alert rules
The following alert rules are supported. For information about how to set alert parameters, configure whitelists, and perform other related operations, see Configure alerts.
APIgateway Server Average Delay Too High-8 Alert
ID | sls_app_audit_dataflow_at_api_latency |
Name | APIgateway Server Average Delay Too High-8 Alert |
Version | 1 |
Type | Cloud Platform, Alicloud, Flow Security, APIGateway Flow Security |
Usage | Monitors the average server-side delay of API requests in API Gateway. If the average server-side delay of API requests is greater than or equal to the value of the Threshold parameter, an alert is triggered. |
Check Frequency | Fixed interval: 1 minute. |
Time Range | The data of the last 2 minutes is checked. |
Parameter Settings |
|
External Configurations | None |
Solution | Check whether exceptions have occurred on the API requests whose average server-side delay is too high. |
Prerequisites | The Access Log switch next to API Gateway instance is turned on. To turn on the switch, go to the Log Audit Service page, and then choose . |
APIGateway Backend Server Error Rate Too High-8 Alert
ID | sls_app_audit_dataflow_at_api_err_rate |
Name | APIGateway Backend Server Error Rate Too High-8 Alert |
Version | 1 |
Type | Cloud Platform, Alicloud, Flow Security, APIGateway Flow Security |
Usage | Monitors the error rate of API requests at the backend server in API Gateway. If the error rate of API requests at the backend server in API Gateway is greater than or equal to the value of the Threshold parameter, an alert is triggered. |
Check Frequency | Fixed interval: 1 minute. |
Time Range | The data of the last 2 minutes is checked. |
Parameter Settings |
|
External Configurations | None |
Solution | Check whether exceptions have occurred on the APIs whose error rates at the server end are too high. |
Prerequisites | The Access Log switch next to API Gateway instance is turned on. To turn on the switch, go to the Log Audit Service page, and then choose . |
APIgateway Request Success Rate Too Low Alert
ID | sls_app_audit_dataflow_at_api_req_rate |
Name | APIgateway Request Success Rate Too Low Alert |
Version | 1 |
Type | Cloud Platform, Alicloud, Flow Security, APIGateway Flow Security |
Usage | Monitors the request success rate of API requests in an API gateway. If the success rate of API requests in an API gateway is lower than the value of the Threshold parameter, an alert is triggered. |
Check Frequency | Fixed interval: 1 minute. |
Time Range | The data of the last 2 minutes is checked. |
Parameter Settings |
|
External Configurations | None |
Solution | Check whether exceptions have occurred on the APIs whose success rates of requests are too low. |
Prerequisites | The Access Log switch next to API Gateway instance is turned on. To turn on the switch, go to the Log Audit Service page, and then choose . |