This topic describes how to create an inspection rule.
Background
Before you create an inspection rule, first verify the inspection script on the Inspection Script tab. For more information, see Manage inspections.
Procedure
Log on to the OCP console. In the left-side navigation pane, choose System Management > Inspection .
Click New Inspection Rules on the Inspection Rule tab.

In the dialog box that appears, specify fields in the Basic Information and Scheduling Settings sections.
Specify fields in the Basic Information section.

Field Description Inspection Rule Name The value can contain letters, digits, underscores (_), and hyphens. It must be 2 to 32 characters in length. Inspection Script Select the inspection script that you need. For more information, see Inspection scripts. Objects You can select clusters, tenants, hosts, or databases in OceanBase Cloud Platform (OCP). Risk Level Select from three risk levels: low, medium, and high. Description Optional. Enter a brief description for the inspection rule. Turn on Scheduling Settings and specify the fields as prompted.

Field Description Scheduling Type Two scheduling types are supported: Regular Scheduling and Single Scheduling . - Regular Scheduling: OCP will regularly perform inspections within the effective duration of the scheduling rule.
- Single Scheduling: OCP will perform one-time inspection at the specified time.
Effective Duration This field is displayed only for regular scheduling. Scheduling Point in Time This field is displayed only for regular scheduling. Scheduling Duration This field is displayed only for single scheduling.
Click Submit . You can view the inspection rule in the inspection rule list. For more information, see Inspection rules.