You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String htmlBody ="\"Hi ,<br/>Certificate expiring in 90 days.<br/><br/>Please login to <a href=\"https: //cloud.ibm.com/security-compliance/dashboard\">Security and Complaince dashboard</a> to find more information<br/>\"";
-**instance_id** (_string_) - Unique identifier for IBM Cloud Event Notifications instance.
1236
+
-**instance_id\*** (_string_) - Unique identifier for IBM Cloud Event Notifications instance.
1235
1237
-**ibmenseverity** (_string_) - Severity for the notifications. Some sources can have the concept of an Event severity. Hence a handy way is provided to specify a severity of the event. example: LOW, HIGH, MEDIUM
1236
1238
-**id\*** (_string_) - A unique identifier that identifies each event. source+id must be unique. The backend should be able to uniquely track this id in logs and other records. Send unique ID for each send notification. Same ID can be sent in case of failure of send notification. source+id will be logged in IBM Cloud Logging service. Using this combination we will be able to trace the event movement from one system to another and will aid in debugging and tracing.
1237
1239
-**source\*** (_string_) - Source of the notifications. This is the identifier of the event producer. A way to uniquely identify the source of the event. For IBM Cloud services this is the crn of the service instance producing the events. For API sources this can be something the event producer backend can uniquely identify itself with.
-**ibmendefaultshort\*** (_string_) - Default short text for the message.
1254
1256
-**ibmendefaultlong\*** (_string_) - Default long text for the message.
1255
1257
-**specversion\*** (_string_) - Spec version of the Event Notifications. Default value is `1.0`.
1256
-
-**ibmenhtmlbody\*** (_string_) - The html body of notification for email.
1257
-
-**ibmenmailto\*** (_Array of string_) - Array of email ids to which the notification to be sent.
1258
-
-**ibmensmsto\*** (_Array of string_) - Array of SMS numbers to which the notification to be sent.
1259
-
-**ibmensmstext\*** (_string_) - SMS text to be sent.
1260
-
-**ibmenslackto\*** (_Array of string_) - Array of Slack channel/member ids to which the notification to be sent.
1261
-
-**ibmentemplates\*** (_Array of string_) - Array of template IDs that needs to be applied while sending notification for custom domain email and slack destination.
1258
+
-**ibmenhtmlbody** (_string_) - The html body of notification for email.
1259
+
-**ibmenmailto** (_Array of string_) - Array of email ids to which the notification to be sent.
1260
+
-**ibmensmsto** (_Array of string_) - Array of SMS numbers to which the notification to be sent.
1261
+
-**ibmensmstext** (_string_) - SMS text to be sent.
1262
+
-**ibmenslackto** (_Array of string_) - Array of Slack channel/member ids to which the notification to be sent.
1263
+
-**ibmentemplates** (_Array of string_) - Array of template IDs that needs to be applied while sending notification for custom domain email and slack destination.
1264
+
-**ibmenmarkdown** (_string_) - The markdown content of pretty formatting.
1262
1265
1263
1266
Note: variable with \* represents the mandatory attribute.
Copy file name to clipboardExpand all lines: modules/event-notifications/src/main/java/com/ibm/cloud/eventnotifications/event_notifications/v1/model/NotificationCreate.java
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ public class NotificationCreate extends DynamicModel<Object> {
Copy file name to clipboardExpand all lines: modules/event-notifications/src/test/java/com/ibm/cloud/eventnotifications/event_notifications/v1/EventNotificationsIT.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3879,6 +3879,7 @@ public void test2GSendNotifications() throws Exception {
StringhtmlBody = "\"Hi ,<br/>Certificate expiring in 90 days.<br/><br/>Please login to <a href=\"https: //cloud.ibm.com/security-compliance/dashboard\">Security and Complaince dashboard</a> to find more information<br/>\"";
Copy file name to clipboardExpand all lines: modules/event-notifications/src/test/java/com/ibm/cloud/eventnotifications/event_notifications/v1/EventNotificationsTest.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,7 @@ public void testSendNotificationsWOptions() throws Throwable {
Copy file name to clipboardExpand all lines: modules/event-notifications/src/test/java/com/ibm/cloud/eventnotifications/event_notifications/v1/model/NotificationCreateTest.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ public void testNotificationCreate() throws Throwable {
Copy file name to clipboardExpand all lines: modules/event-notifications/src/test/java/com/ibm/cloud/eventnotifications/event_notifications/v1/model/SendNotificationsOptionsTest.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ public void testSendNotificationsOptions() throws Throwable {
Copy file name to clipboardExpand all lines: modules/examples/src/main/java/com/ibm/cloud/eventnotifications/event_notifications/v1/EventNotificationsExamples.java
StringhtmlBody = "\"Hi ,<br/>Certificate expiring in 90 days.<br/><br/>Please login to <a href=\"https: //cloud.ibm.com/security-compliance/dashboard\">Security and Complaince dashboard</a> to find more information<br/>\"";
0 commit comments