Elastica\Cluster\Health\Index::getStatus PHP Method

getStatus() public method

Gets the status of the index.
public getStatus ( ) : string
return string green, yellow or red.
    public function getStatus()
    {
        return $this->_data['status'];
    }

Usage Example

 public function testGetStatus()
 {
     $this->assertEquals('yellow', $this->_index->getStatus());
 }