Adding an Event Type to an Events Rule

Add an event type to a rule in Events to identify the type of event included in the payload.

For more information about using event types in an events rule, see Matching Events with Filters.

    1. Open the navigation menu and click Observability & Management. Under Events Service, click Rules.
    2. Click the nameName of the rule that 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 Event Matching.
    4. Click Add Event Type
    5. In the Add Event Type dialog box, select a service and select an event type for this service.
    6. Click Add Event Type.
  • Use the --condition option when running the oci events rule update command to add an event type of an events rule:

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

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

  • Run the UpdateRule operation to edit an event rule. Include the condition attribute and its values to add an event type to an events rule.