Dela via


SearchModelFactory.SearchServiceCounters Method

Definition

Initializes a new instance of SearchServiceCounters.

public static Azure.Search.Documents.Indexes.Models.SearchServiceCounters SearchServiceCounters (Azure.Search.Documents.Indexes.Models.SearchResourceCounter aliasCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter documentCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexerCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter dataSourceCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter storageSizeCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter synonymMapCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter skillsetCounter = default, Azure.Search.Documents.Indexes.Models.SearchResourceCounter vectorIndexSizeCounter = default);
static member SearchServiceCounters : Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter * Azure.Search.Documents.Indexes.Models.SearchResourceCounter -> Azure.Search.Documents.Indexes.Models.SearchServiceCounters
Public Shared Function SearchServiceCounters (Optional aliasCounter As SearchResourceCounter = Nothing, Optional documentCounter As SearchResourceCounter = Nothing, Optional indexCounter As SearchResourceCounter = Nothing, Optional indexerCounter As SearchResourceCounter = Nothing, Optional dataSourceCounter As SearchResourceCounter = Nothing, Optional storageSizeCounter As SearchResourceCounter = Nothing, Optional synonymMapCounter As SearchResourceCounter = Nothing, Optional skillsetCounter As SearchResourceCounter = Nothing, Optional vectorIndexSizeCounter As SearchResourceCounter = Nothing) As SearchServiceCounters

Parameters

aliasCounter
SearchResourceCounter

Total number of aliases.

documentCounter
SearchResourceCounter

Total number of documents across all indexes in the service.

indexCounter
SearchResourceCounter

Total number of indexes.

indexerCounter
SearchResourceCounter

Total number of indexers.

dataSourceCounter
SearchResourceCounter

Total number of data sources.

storageSizeCounter
SearchResourceCounter

Total size of used storage in bytes.

synonymMapCounter
SearchResourceCounter

Total number of synonym maps.

skillsetCounter
SearchResourceCounter

Total number of skillsets.

vectorIndexSizeCounter
SearchResourceCounter

Total memory consumption of all vector indexes within the service, in bytes.

Returns

A new SearchServiceCounters instance for mocking.

Exceptions

aliasCounter, documentCounter, indexCounter, indexerCounter, dataSourceCounter, storageSizeCounter, synonymMapCounter, skillsetCounter or vectorIndexSizeCounter is null.

Applies to