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.
- Navigate to the events list page. If you need help finding the list page, see Listing Events Rules.
- Select a rule and then select Actions.
- Under Actions, select Add.
- In the Add action panel, 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.
- Select Add action.
Use the
option when running the oci events rule update command to add an action to a rule:--actionoci events rule update [...] --action actionFor 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
actionattribute and its values to add an action.