Share via


SearchModelFactory.KnowledgeAgentSearchActivityRecord Method

Definition

Initializes a new instance of KnowledgeAgentSearchActivityRecord.

public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchActivityRecord KnowledgeAgentSearchActivityRecord(int id = 0, string targetIndex = default, Azure.Search.Documents.Models.KnowledgeAgentSearchActivityRecordQuery query = default, DateTimeOffset? queryTime = default, int? count = default, int? elapsedMs = default);
static member KnowledgeAgentSearchActivityRecord : int * string * Azure.Search.Documents.Models.KnowledgeAgentSearchActivityRecordQuery * Nullable<DateTimeOffset> * Nullable<int> * Nullable<int> -> Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchActivityRecord
Public Shared Function KnowledgeAgentSearchActivityRecord (Optional id As Integer = 0, Optional targetIndex As String = Nothing, Optional query As KnowledgeAgentSearchActivityRecordQuery = Nothing, Optional queryTime As Nullable(Of DateTimeOffset) = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional elapsedMs As Nullable(Of Integer) = Nothing) As KnowledgeAgentSearchActivityRecord

Parameters

id
Int32

The ID of the activity record.

targetIndex
String

The target index for the retrieval activity.

query
KnowledgeAgentSearchActivityRecordQuery

The query details for the retrieval activity.

queryTime
Nullable<DateTimeOffset>

The query time for this retrieval activity.

count
Nullable<Int32>

The count of documents retrieved.

elapsedMs
Nullable<Int32>

The elapsed time in milliseconds for the retrieval activity.

Returns

A new KnowledgeAgentSearchActivityRecord instance for mocking.

Applies to