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

Triggering a Rule

Scenarios

Rules can be triggered automatically or manually.

  • Automatic

    A rule will be automatically triggered:

    • When you add a rule.
    • When you modify a rule
    • When you enable a rule
    • When there is a change to any of your monitored resources if you set Trigger Type to Configuration change.

    At a specific frequency if you set Trigger Type to Periodic execution.

  • Manual

    You can manually initiate rule evaluation at any time through the console or

    the run-evaluation API.

Limitations and Constraints

The following lists the limitations and constraints for the resource recorder to collect resource data:

  • If you have never enabled the resource recorder, no resources will be available for evaluation.
  • The resource recorder only collects data of specified resources within the monitoring scope that you have configured when you enable the resource recorder.
  • If you enable the resource recorder and then disable it after a period of time, the recorder only collects and evaluates resource data during the period when it is enabled.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner. Under Management & Governance, click Config.
  3. In the navigation pane on the left, choose Resource Compliance.
  4. Locate a target rule and click Evaluate in the Operation column.
  5. In the displayed dialog box, click OK.

    Figure 1 Manually triggering a rule