There was an error while loading. Please reload this page.
1 parent 3072b53 commit df8febbCopy full SHA for df8febb
scripts/PagerDuty-Integration/script.py
@@ -2,9 +2,14 @@
2
3
import json
4
import requests
5
+from pathlib import Path
6
+from dotenv import load_dotenv
7
+env_path=Path('.')/'.env'
8
+load_dotenv(dotenv_path=env_path)
9
+
10
11
#This Key should be available in .env file
-ROUTING_KEY = "" # ENTER EVENTS V2 API INTEGRATION KEY HERE
12
+ROUTING_KEY = os.environ['ROUTING_KEY'] # ENTER EVENTS V2 API INTEGRATION KEY HERE
13
14
15
# This function takes the payload info from the user and can be put in the right format
0 commit comments