Inspection rules
Inspection rules are instances of inspection plugins that are associated with inspection scripts. The instantiation parameters for these rules must be environment-independent and support parameter rendering through Yunyou.
In the navigation pane on the left, click Daily Inspection > Inspection Rules to open the rule list page. You can view all rules for the current environment and filter them by rule ID, rule name, plugin type, and creator.
Create a rule
Log on to the High Availability Management Platform.
In the navigation pane on the left, click Daily Inspection > Inspection Rules.
Click Create. In the Create Inspection Rule panel, configure the following parameters.
The parameters are as follows:
Parameter
Required
Description
Rule name
Required
Enter the plugin name.
Description
Optional
Enter a description of the rule.
Alert level
Required
You can select one of three levels: High, Medium, and Low.
Governance suggestion
Required
Enter a governance suggestion.
Plugin type
Required
You can select Python Script, Shell Script, or System Plugin. For more information about each plugin type, see Plugin overview.
If you select Python Script or Shell Script, add a rule destination to verify user permissions for application operations.
Central Product: Supports operations only from users of central products.
Business Application: Supports operations only from users of business tenants.
Custom Server: No restrictions on the operation object.
If you select System Plugin, add an operator, a target quantity, and an application to query the number of application pods.
Associated plugin
Required
Select a plugin. To add a new plugin, see Create a plugin.
Tags
Optional
Select one or more tags for easier querying and statistics.
Click Confirm.
View rule details
In the rule list, click a rule name to open the rule details page. This page displays the rule's basic information, applicable scope, and plugin parameters.
Basic information: Displays basic information about the inspection rule, such as the rule ID, execution status, creator, and alert level.
Scope: The inspection scope of the rule. This includes the data centers, object types, and products to which the rule applies.
Associated pages: This section is displayed only for rules of the page liveness check type. This list provides information such as the page name, URL suffix, and corresponding product code associated with the rule.
Plugin parameters: Displays the input parameters for the plugin script.
Other operations
Import rules: Click Import, and then select the inspection rules that you want to import from your local computer.
Export rules: Click Export. On the Export Rules page that appears, select the checkboxes for the rules that you want to export, and then click Export.
Clone a rule: In the Actions column for the desired rule, click Clone. In the confirmation dialog box that appears, click Yes.
Edit a rule: In the Actions column for the desired rule, click Edit. On the page that appears, modify the rule information, and then click Confirm.
Delete a rule: In the Actions column for the desired rule, click More > Delete. In the confirmation dialog box that appears, click Yes.
Batch delete rules: Select the checkboxes for the rules that you want to delete, click Batch Delete, and then click OK in the confirmation dialog box that appears.