SearchModelFactory.SearchIndexerStatus 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 SearchIndexerStatus.
public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = default, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = default, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.IndexerExecutionResult> executionHistory = default, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = default, Azure.Search.Documents.Indexes.Models.IndexerState currentState = default);
static member SearchIndexerStatus : string * Azure.Search.Documents.Indexes.Models.IndexerStatus * Azure.Search.Documents.Indexes.Models.IndexerRuntime * Azure.Search.Documents.Indexes.Models.IndexerExecutionResult * seq<Azure.Search.Documents.Indexes.Models.IndexerExecutionResult> * Azure.Search.Documents.Indexes.Models.SearchIndexerLimits * Azure.Search.Documents.Indexes.Models.IndexerState -> Azure.Search.Documents.Indexes.Models.SearchIndexerStatus
Public Shared Function SearchIndexerStatus (Optional name As String = Nothing, Optional status As IndexerStatus = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Optional runtime As IndexerRuntime = Nothing, Optional lastResult As IndexerExecutionResult = Nothing, Optional executionHistory As IEnumerable(Of IndexerExecutionResult) = Nothing, Optional limits As SearchIndexerLimits = Nothing, Optional currentState As IndexerState = Nothing) As SearchIndexerStatus
Parameters
- name
- String
The name of the indexer.
- status
- IndexerStatus
Overall indexer status.
- runtime
- IndexerRuntime
Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period.
- lastResult
- IndexerExecutionResult
The result of the most recent or an in-progress indexer execution.
- executionHistory
- IEnumerable<IndexerExecutionResult>
History of the recent indexer executions, sorted in reverse chronological order.
- limits
- SearchIndexerLimits
The execution limits for the indexer.
- currentState
- IndexerState
All of the state that defines and dictates the indexer's current execution.
Returns
A new SearchIndexerStatus instance for mocking.