Compartilhar via


CosmosQueryExecutedEventData Constructors

Definition

Overloads

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, Nullable<PartitionKey>, IReadOnlyList<ValueTuple<String,Object>>, String, Boolean)

Constructs the event payload.

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, String, IReadOnlyList<ValueTuple<String, Object>>, String, Boolean)

Constructs the event payload.

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, Nullable<PartitionKey>, IReadOnlyList<ValueTuple<String,Object>>, String, Boolean)

Source:
CosmosQueryExecutedEventData.cs

Constructs the event payload.

public CosmosQueryExecutedEventData (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, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * TimeSpan * double * string * string * Nullable<Microsoft.Azure.Cosmos.PartitionKey> * System.Collections.Generic.IReadOnlyList<ValueTuple<string, obj>> * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryExecutedEventData
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 Nullable(Of PartitionKey), parameters As IReadOnlyList(Of ValueTuple(Of String, Object)), querySql 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 command 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
Nullable<PartitionKey>

The key value of the Cosmos partition that the query is using.

parameters
IReadOnlyList<ValueTuple<String,Object>>

Name/values for each parameter in the Cosmos Query.

querySql
String

The SQL representing the query.

logSensitiveData
Boolean

Indicates whether the application allows logging of sensitive data.

Applies to

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, String, IReadOnlyList<ValueTuple<String, Object>>, String, Boolean)

Source:
CosmosQueryExecutedEventData.cs
Source:
CosmosQueryExecutedEventData.cs
Source:
CosmosQueryExecutedEventData.cs

Constructs the event payload.

public CosmosQueryExecutedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, TimeSpan elapsed, double requestCharge, string activityId, string containerId, string? partitionKey, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);
new Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * TimeSpan * double * string * string * string * System.Collections.Generic.IReadOnlyList<ValueTuple<string, obj>> * string * bool -> Microsoft.EntityFrameworkCore.Diagnostics.CosmosQueryExecutedEventData
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, partitionKey As String, parameters As IReadOnlyList(Of ValueTuple(Of String, Object)), querySql 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 command 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.

partitionKey
String

The key of the Cosmos partition that the query is using.

parameters
IReadOnlyList<ValueTuple<String,Object>>

Name/values for each parameter in the Cosmos Query.

querySql
String

The SQL representing the query.

logSensitiveData
Boolean

Indicates whether the application allows logging of sensitive data.

Applies to