Last active
February 15, 2019 20:12
-
-
Save ealsur/372cce28d42c9f554ce7d43ff9e99eec to your computer and use it in GitHub Desktop.
Azure Cosmos DB + Functions Cookbook - monitoring - trigger
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
[FunctionName("Trigger")] | |
public static void Trigger([CosmosDBTrigger( | |
databaseName: "%MonitoredDatabase%", | |
collectionName: "%MonitoredCollection%", | |
ConnectionStringSetting = "CosmosDB", | |
LeaseCollectionPrefix = "%MonitoredDatabaseLeasePrefix%", | |
LeaseCollectionName = "leases", | |
CreateLeaseCollectionIfNotExists = true)] IReadOnlyList<Document> documents, | |
ILogger log) | |
{ | |
// Do something with the documents | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment