Refactor getEnabledRuleNum function to return error and improve handling of rule category status
The getEnabledRuleNum function now returns an error for better error handling. It calculates the number of enabled WAF rule categories based on the WAF service's rule category status, ensuring accurate counts in the GetWaf method. This change enhances the robustness of the WAF service response.
Showing
Please register or sign in to comment