Adding an Action to an Events Rule

Add an action to a rule in Events to perform a specific task.

For more information on using actions in a rule, see Matching Events with Filters.

    1. Open the navigation menu and click Observability & Management. Under Events Service, click Rules.
    2. Click the Name of the rule you want to update. If you don't see the rule that you want, verify that the correct compartment is selected.
    3. Under Resources, click Actions.
    4. Click Add
    5. From the Action Type list in the Add Action dialog box, select the type of action to add and then provide the information specific to that resource.
      • To add a stream, select Streaming, select the compartment where the stream that you want to use is located, and then select the stream.
      • To add a topic, select Notifications, select the compartment where the topic that you want to use is located, and then select the topic.
      • To add a function, select Functions, select the compartment where the function that you want to use is located, select the function application, and then select the function.
    6. To enable the action, select the Enabled check box. To disable the action, clear the check box.
    7. Click Add Action.
  • Use the --action option when running the oci events rule update command to add an action to a rule:

    oci events rule update [...] --action action 

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateRule operation to create a rule. Include the action attribute and its values to add an action.