SearchModelFactory.KnowledgeBaseActivityStartedEvent Method
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.
Emitted immediately before an individual retrieval activity begins executing.
public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityStartedEvent KnowledgeBaseActivityStartedEvent(int id = 0, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecordType type = default, DateTimeOffset startedOn = default, string knowledgeSourceName = default);
static member KnowledgeBaseActivityStartedEvent : int * Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecordType * DateTimeOffset * string -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityStartedEvent
Public Shared Function KnowledgeBaseActivityStartedEvent (Optional id As Integer = 0, Optional type As KnowledgeBaseActivityRecordType = Nothing, Optional startedOn As DateTimeOffset = Nothing, Optional knowledgeSourceName As String = Nothing) As KnowledgeBaseActivityStartedEvent
Parameters
- id
- Int32
The ID of the activity record, matching the id on the corresponding activity.completed event.
The type of the activity that has started.
- startedOn
- DateTimeOffset
The time at which the activity started.
- knowledgeSourceName
- String
The knowledge source used by the activity, when the activity targets a knowledge source.
Returns
A new KnowledgeBaseActivityStartedEvent instance for mocking.