You are here

protected function SearchApiElasticsearchElastica::getClusterHealth in Search API Elasticsearch 7

Get Cluster health.

Overrides SearchApiElasticsearchAbstractService::getClusterHealth

1 call to SearchApiElasticsearchElastica::getClusterHealth()
SearchApiElasticsearchElastica::viewSettings in modules/elastica/includes/SearchApiElasticsearchElastica.inc
Overrides viewSettings().

File

modules/elastica/includes/SearchApiElasticsearchElastica.inc, line 993
Provides Elastica client for Search API Elasticsearch.

Class

SearchApiElasticsearchElastica
Search API Elasticsearch Elastica service class.

Code

protected function getClusterHealth() {
  return $this->elasticaClient
    ->getCluster()
    ->getHealth()
    ->getData();
}