From 0cb600742fc3293d8a32f01bc54d4f4e842a7d6f Mon Sep 17 00:00:00 2001 From: SatyaVadapalli <40577569+SatyaVadapalli@users.noreply.github.com> Date: Tue, 13 Jun 2023 09:52:15 -0700 Subject: [PATCH] Update notify_teams.py --- functions/notify_teams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/notify_teams.py b/functions/notify_teams.py index fac9098a..85b153f4 100644 --- a/functions/notify_teams.py +++ b/functions/notify_teams.py @@ -56,14 +56,14 @@ def lambda_handler(event, context): "colour": "d63333", "title": "Alert - There is an issue: %s" % event['Records'][0]['Sns'] ['Subject'], - "text": { + "text": json.dumps({ "Subject": event['Records'][0]['Sns']['Subject'], "Type": event['Records'][0]['Sns']['Type'], "MessageId": event['Records'][0]['Sns']['MessageId'], "TopicArn": event['Records'][0]['Sns']['TopicArn'], "Message": event['Records'][0]['Sns']['Message'], "Timestamp": event['Records'][0]['Sns']['Timestamp'] - } + }) } message = {