Skip to content

Commit

Permalink
Merge pull request #5 from teamclairvoyant/fix-the-lambda
Browse files Browse the repository at this point in the history
Update notify_teams.py
  • Loading branch information
SatyaVadapalli authored Jun 13, 2023
2 parents 2fd8e15 + 0cb6007 commit 95a4631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/notify_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 95a4631

Please sign in to comment.