SearchModelFactory.IndexerExecutionResult 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.
Initializes a new instance of IndexerExecutionResult.
public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult (Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail? statusDetail = default, Azure.Search.Documents.Indexes.Models.IndexerState currentState = default, string errorMessage = default, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.SearchIndexerError> errors = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.SearchIndexerWarning> warnings = default, int itemCount = 0, int failedItemCount = 0, string initialTrackingState = default, string finalTrackingState = default);
static member IndexerExecutionResult : Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus * Nullable<Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail> * Azure.Search.Documents.Indexes.Models.IndexerState * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.Search.Documents.Indexes.Models.SearchIndexerError> * seq<Azure.Search.Documents.Indexes.Models.SearchIndexerWarning> * int * int * string * string -> Azure.Search.Documents.Indexes.Models.IndexerExecutionResult
Public Shared Function IndexerExecutionResult (Optional status As IndexerExecutionStatus = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, Optional statusDetail As Nullable(Of IndexerExecutionStatusDetail) = Nothing, Optional currentState As IndexerState = Nothing, Optional errorMessage As String = Nothing, Optional startTime As Nullable(Of DateTimeOffset) = Nothing, Optional endTime As Nullable(Of DateTimeOffset) = Nothing, Optional errors As IEnumerable(Of SearchIndexerError) = Nothing, Optional warnings As IEnumerable(Of SearchIndexerWarning) = Nothing, Optional itemCount As Integer = 0, Optional failedItemCount As Integer = 0, Optional initialTrackingState As String = Nothing, Optional finalTrackingState As String = Nothing) As IndexerExecutionResult
Parameters
- status
- IndexerExecutionStatus
The outcome of this indexer execution.
- statusDetail
- Nullable<IndexerExecutionStatusDetail>
The outcome of this indexer execution.
- currentState
- IndexerState
All of the state that defines and dictates the indexer's current execution.
- errorMessage
- String
The error message indicating the top-level error, if any.
- startTime
- Nullable<DateTimeOffset>
The start time of this indexer execution.
- endTime
- Nullable<DateTimeOffset>
The end time of this indexer execution, if the execution has already completed.
- errors
- IEnumerable<SearchIndexerError>
The item-level indexing errors.
- warnings
- IEnumerable<SearchIndexerWarning>
The item-level indexing warnings.
- itemCount
- Int32
The number of items that were processed during this indexer execution. This includes both successfully processed items and items where indexing was attempted but failed.
- failedItemCount
- Int32
The number of items that failed to be indexed during this indexer execution.
- initialTrackingState
- String
Change tracking state with which an indexer execution started.
- finalTrackingState
- String
Change tracking state with which an indexer execution finished.
Returns
A new IndexerExecutionResult instance for mocking.
Applies to
Azure SDK for .NET