in src/pipeline_alerts_function/app.py [0:0]
def call_webhook_endpoint(post_message):
webhook_url = os.environ['WEBHOOK_URL']
response = requests.request("POST", webhook_url, json = {"Content": post_message}, headers = {'content-type': 'application/json'})
return response