lib/Elastica/Cluster/Health.php
protected function _retrieveHealthData(): array
    {
        $endpoint = new \Elasticsearch\Endpoints\Cluster\Health();
        $endpoint->setParams(['level' => 'shards']);

        $response = $this->_client->requestEndpoint($endpoint);

        return $response->getData();
    }
protected function _retrieveHealthData(): array
    {
        $endpoint = new \Elasticsearch\Endpoints\Cluster\Health();
        $endpoint->setParams(['level' => 'shards']);

        $response = $this->_client->requestEndpoint($endpoint);

        return $response->getData();
    }
protected function _retrieveHealthData ( ) : array { $ endpoint = new \ Elasticsearch \ Endpoints \ Cluster \ Health ( ) ; $ endpoint -> setParams ( [ 'level' => 'shards' ] ) ; $ response = $ this -> _client -> requestEndpoint ( $ endpoint ) ; return $ response -> getData ( ) ; }
Retrieves the health data from the cluster.

@return array
Retrieves the health data from the cluster .