Updated on 2024-05-08 GMT+08:00

Configuring a Rule

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

Rule Entry

  1. On the service page, click the avatar icon in the upper right corner and choose All Account Settings.
  2. On the left menu bar, choose Policy Management > Rules.

Creating a Rule

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

Parameter

Description

Name

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

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

Thresholds are automatically configured based on the selected extension version. Based on the configured relationship, the extension output can be parsed into number or text. Rule configurations can be referenced by a policy and finally applied to a pipeline as pass conditions.

Editing a Rule

On the rule management page, click in the Operation column. 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 a Rule

On the rule management page, click in the Operation column. On the displayed dialog box, confirm the deletion.

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