Table of Contents

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

client ElasticsearchClient

Methods

GetClusterHealthAsync(CancellationToken)

Gets the cluster health status from Elasticsearch.

public Task<HealthResponse> GetClusterHealthAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task<HealthResponse>

The cluster health response.