We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e09d5ef commit c6ba72cCopy full SHA for c6ba72c
examples/create_alert.py
@@ -29,10 +29,11 @@
29
#
30
# Find notification channels (you need IDs to create an alert).
31
32
-notify_channels = [ {'type': 'SLACK', 'channel': '#sysdig-demo2-alerts'},
33
- {'type': 'EMAIL', 'emailRecipients': ['kini@sysdig.com']},
+notify_channels = [ {'type': 'SLACK', 'channel': 'sysdig-demo2-alerts'},
+ {'type': 'EMAIL', 'emailRecipients': ['gianluca@sysdig.com']},
34
{'type': 'SNS', 'snsTopicARNs': ['arn:aws:sns:us-east-1:273107874544:alarms-stg']}
35
]
36
+
37
res = sdclient.get_notification_ids(notify_channels)
38
if not res[0]:
39
print "Could not get IDs and hence not creating the alert: " + res[1]
0 commit comments