IBM Cloud Docs
Create an Event Notifications topic

Create an Event Notifications topic

Create an Event Notifications topic. Topics are based on a publish and subscription model. You can send notifications or alerts to multiple destination types, (for example, email, SMS, and others that are subscribed to a particular topic. Configure topics as needed and Event Notifications handles the routing and delivering of alerts reliably to the correct destinations.

  • Each topic is created under a registered source.
  • Each topic can have its own set of rules, which routes the incoming payload to the respective topic.

Select topics in the Event Notifications console

Select Topics in the Event Notifications console.

Click Create, and enter the following topic details:

  • Name: enter a name for the topic.
  • Description: add an optional description for the topic.
  • Source: select a source from the list.

Add rules to your topic

Step 1 created a topic, step 2 provisions optional custom rules for the topic.

Add the following rules to your topic:

  • Event type: select event type from the list.
  • Event subtype: select event sub type from the event sub type list.
  • Severity: select severity from the severity list.
  • Advanced conditions: create your own custom conditions, which must follow JSONpath specifications. In the JSONpath specifications, many operators support is provided but currently support for == operator enabled. Example:
{
   "data": {
      "findings": [
         {
            "severity": "LOW",
            "provider": "cert-mgr"
         },
         {
            "severity": "HIGH",
            "provider": "secrets-mgr"
         }
      ],
      "severity": "LOW",
      "payloadType": "findings",
      "issuer": "IBM Cloud Security Advisor",
   }
}

Based on the previous input JSON following valid JSONPaths can be constructed:

1. $.data.severity=='LOW'
Output: True

2. $.data.findings[1].severity == 'HIGH'
Output: True

Finish adding rules to your topic

Click Add a condition.

If you do not select any rules, a default rule is added, which means all notifications route to the topic by default.

Create a topic

Click Create in the topic wizard.