Azure Functions app that sends email alerts when whale detections cluster at a configured hydrophone node.
Copy NotificationFunction/local.settings.json.example to NotificationFunction/local.settings.json for local development and set these values:
| Variable | Required | Default | Purpose |
|---|---|---|---|
AzureWebJobsStorage |
Yes | — | Azure Functions storage connection |
FUNCTIONS_WORKER_RUNTIME |
Yes | dotnet-isolated |
Azure Functions worker runtime |
CosmosDbConnection |
Yes | — | Cosmos DB connection string |
CosmosDbDatabase |
No | detections |
Cosmos DB database name |
CosmosDbContainer |
No | metadata |
Cosmos DB container name |
StorageConnection |
Yes | — | Azure Table Storage connection string |
SenderEmail |
Yes | — | AWS SES sender address |
AwsRegion |
No | us-west-2 |
AWS region for SES |
NODE_NAME |
Yes | — | Hydrophone location name to monitor |
EMAIL_DESTINATION |
Yes | — | Notification recipient |
NOTIFICATION_PERIOD_MINUTES |
No | 60 |
Minimum time between notifications |
DETECTION_PERIOD_MINUTES |
No | 15 |
Detection lookback window |
cd NotificationFunction
dotnet builddotnet test NotificationFunction.sln