Updated on 2023-11-28 GMT+08:00

Configuring a rule

Rules are tenant-level resources and can be referenced and configured in all tenant- or project-level policies of the current tenant.

Rule Entry

  1. On any service page, click the avatar icon in the upper right corner and choose All Account Settings from the drop-down list.
  2. Click Policy Management > Rules. The rule management page is displayed.

Adding Rules

Click Create Rule. On the displayed Create Rule page, set parameters as required and click Confirm to create a tenant-level rule.

Parameter

Description

Name

Rule name, which is generated based on the current time by default.

Type

Rule type, which corresponds to the extension type.

Extension

Name of the extension bound to the rule. Only the extension version for which the metric threshold is configured can be selected.

Version

Version of the extension bound to the rule. Only the extension version for which the metric threshold is configured can be selected.

Threshold Configuration

Extension output threshold configuration automatically based on the selected extension version. Based on the configured relationship, the extension output can be parsed into the number or text. After the rule is configured, the configured relationship is referenced by the policy and finally configured in the pipeline as a pass condition.

Modifying Rules

On the rule management page, click in the Operation column of the target rule. On the displayed page, edit the rule and click Save.

  • The rule type cannot be modified.
  • After a rule is edited, all policies that reference the rule are automatically modified.

Deleting Rules

On the rule management page, click in the Operation column of the target rule. On the displayed page, confirm the information and click Delete to delete the rule.

After a rule is deleted, all policies that reference the rule automatically cancel the reference.