SearchIndexClient.GetServiceStatisticsAsync 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.
Overloads
| Name | Description |
|---|---|
| GetServiceStatisticsAsync(RequestContext) |
[Protocol Method] Gets service level statistics for a search service.
|
| GetServiceStatisticsAsync(CancellationToken) |
Gets service level statistics for a search service. |
GetServiceStatisticsAsync(RequestContext)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
[Protocol Method] Gets service level statistics for a search service.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetServiceStatisticsAsync(Azure.RequestContext context);
abstract member GetServiceStatisticsAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetServiceStatisticsAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetServiceStatisticsAsync (context As RequestContext) As Task(Of Response)
Parameters
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.
Applies to
GetServiceStatisticsAsync(CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Gets service level statistics for a search service.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchServiceStatistics>> GetServiceStatisticsAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceStatisticsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchServiceStatistics>>
override this.GetServiceStatisticsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchServiceStatistics>>
Public Overridable Function GetServiceStatisticsAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchServiceStatistics))
Parameters
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The Response<T> from the server containing SearchServiceStatistics.
Exceptions
Service returned a non-success status code.