Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def send_alarms_to_teams(alarms, teams_webhook_url, template_path):
for alarm in alarms:
sending_alarm = compose(template_path, AlarmMapper.map_alarm_to_json(alarm))
logger.debug('The message that will be sent is: %s', str(sending_alarm))
post(teams_webhook_url, sending_alarm)