CosmosTransactionalBatchExecutedEventData Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs the event payload.
public CosmosTransactionalBatchExecutedEventData(Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, TimeSpan elapsed, double requestCharge, string activityId, string containerId, Microsoft.Azure.Cosmos.PartitionKey partitionKeyValue, string documentIds, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosTransactionalBatchExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * TimeSpan * double * string * string * Microsoft.Azure.Cosmos.PartitionKey * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosTransactionalBatchExecutedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), elapsed As TimeSpan, requestCharge As Double, activityId As String, containerId As String, partitionKeyValue As PartitionKey, documentIds As String, logSensitiveData As Boolean)
Parameters
- eventDefinition
- EventDefinitionBase
The event definition.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
A delegate that generates a log message for this event.
- elapsed
- TimeSpan
The time elapsed since the batch was sent to the database.
- requestCharge
- Double
The request charge in RU.
- activityId
- String
The activity ID.
- containerId
- String
The ID of the Cosmos container being queried.
- partitionKeyValue
- PartitionKey
The key of the Cosmos partition that the batch is using.
- documentIds
- String
The ids of the documents that were written to in the transactional batch.
- logSensitiveData
- Boolean
Indicates whether the application allows logging of sensitive data.