Class ElasticsearchHealthClient
- Namespace
- Excalibur.Data.ElasticSearch
- Assembly
- Excalibur.Data.ElasticSearch.dll
Provides a wrapper around the Elasticsearch client for health checks.
public sealed class ElasticsearchHealthClient : IElasticsearchHealthClient
- Inheritance
-
ElasticsearchHealthClient
- Implements
- Inherited Members
Constructors
ElasticsearchHealthClient(ElasticsearchClient)
Provides a wrapper around the Elasticsearch client for health checks.
public ElasticsearchHealthClient(ElasticsearchClient client)
Parameters
clientElasticsearchClient
Methods
GetClusterHealthAsync(CancellationToken)
Gets the cluster health status from Elasticsearch.
public Task<HealthResponse> GetClusterHealthAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<HealthResponse>
The cluster health response.