-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c819a7
commit fa489eb
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,12 @@ def main(event: func.EventGridEvent): | |
}) | ||
|
||
logging.info('Python EventGrid trigger processed an event: %s', event.subject) | ||
|
||
# Upload and consume configuration for rule processing based on it | ||
# https://github.com/Azure-Samples/communication-services-python-quickstarts/blob/main/send-email/send-email.py | ||
|
||
message = "Forecast: {}".format(event.subject) | ||
message = """Forecast: {} has SIC threshold changes that are of concern, | ||
please review latest forecast in the icenet-gui!""".format(event.subject) | ||
from_addr = "[email protected]" | ||
to_addr = os.environ["DESTINATION_EMAIL"] \ | ||
if "DESTINATION_EMAIL" in os.environ else "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
# https://azure.github.io/azure-sdk/releases/latest/index.html#python | ||
azure-functions | ||
azure-communication-email | ||
# git+https://github.com/icenet-ai/[email protected]_dev | ||
xarray |