語言

CosmosQueryExecutedEventData 類別

定義

一個 DiagnosticSource 用於 Cosmos 查詢事件的事件有效載荷類別。

[System.Runtime.CompilerServices.Nullable(0)]
public class CosmosQueryExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventData
public class CosmosQueryExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventData
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosQueryExecutedEventData = class
    inherit EventData
type CosmosQueryExecutedEventData = class
    inherit EventData
Public Class CosmosQueryExecutedEventData
Inherits EventData
繼承
CosmosQueryExecutedEventData
屬性

備註

更多資訊與範例請參閱 日誌、事件與診斷 。

建構函式

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

負責建構事件有效載荷。

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

負責建構事件有效載荷。

屬性

名稱 Description
ActivityId

活動標識碼。

ContainerId

被查詢的 Cosmos 貨櫃的 ID。

Elapsed

指令發送到資料庫後的時間已過。

EventId

那 EventId 就是訊息的 ID 和名稱。

(繼承來源 EventData)
EventIdCode

一個字串代表該事件定義的程式碼。

(繼承來源 EventData)
LogLevel

LogLevel那個會用來記錄這個事件的訊息。

(繼承來源 EventData)
LogSensitiveData

指示應用程式是否允許記錄敏感資料。

Parameters

Cosmos 查詢中每個參數的名稱/值。

PartitionKey

查詢所使用的 Cosmos 分割的鍵。

PartitionKeyValue

查詢所使用的 Cosmos 分割的鍵。

QuerySql

代表查詢的 SQL。

RequestCharge

RU的請求收費。

方法

名稱 Description
ToString()

一段記錄訊息描述此事件。

(繼承來源 EventData)

適用於