Skip to content

Commit 3754140

Browse files
author
Phil Rzewski
committed
Add support for WEBHOOK Notification Channels when creating Alerts
1 parent 29a4de1 commit 3754140

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdcclient/_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ def get_notification_ids(self, channels):
228228
if c['name'] == ch['name']:
229229
found = True
230230
ids.append(ch['id'])
231+
elif c['type'] == 'WEBHOOK':
232+
if 'name' in c:
233+
if c['name'] == ch['name']:
234+
found = True
235+
ids.append(ch['id'])
231236
if not found:
232237
return [False, "Channel not found: " + str(c)]
233238

0 commit comments

Comments
 (0)