public function checkHealth($status)
    {
        if ($status) {
            if ($this->eye->status()->isSick('custom_'.$this->getSafeName())) {
                $this->recovering();
                $this->eye->notifier()->alert(new Passed($this));
            }

            $this->eye->status()->setHealthy('custom_'.$this->getSafeName());

            return true;
        }

        if ($this->eye->status()->isHealthy('custom_'.$this->getSafeName())) {
            $this->failing();
            $this->eye->notifier()->alert(new Failed($this));
        }

        $this->eye->status()->setSick('custom_'.$this->getSafeName());

        return false;
    }
public function checkHealth($status)
    {
        if ($status) {
            if ($this->eye->status()->isSick('custom_'.$this->getSafeName())) {
                $this->recovering();
                $this->eye->notifier()->alert(new Passed($this));
            }

            $this->eye->status()->setHealthy('custom_'.$this->getSafeName());

            return true;
        }

        if ($this->eye->status()->isHealthy('custom_'.$this->getSafeName())) {
            $this->failing();
            $this->eye->notifier()->alert(new Failed($this));
        }

        $this->eye->status()->setSick('custom_'.$this->getSafeName());

        return false;
    }
public function checkHealth ( $ status ) { if ( $ status ) { if ( $ this -> eye -> status ( ) -> isSick ( 'custom_' . $ this -> getSafeName ( ) ) ) { $ this -> recovering ( ) ; $ this -> eye -> notifier ( ) -> alert ( new Passed ( $ this ) ) ; } $ this -> eye -> status ( ) -> setHealthy ( 'custom_' . $ this -> getSafeName ( ) ) ; return true ; } if ( $ this -> eye -> status ( ) -> isHealthy ( 'custom_' . $ this -> getSafeName ( ) ) ) { $ this -> failing ( ) ; $ this -> eye -> notifier ( ) -> alert ( new Failed ( $ this ) ) ; } $ this -> eye -> status ( ) -> setSick ( 'custom_' . $ this -> getSafeName ( ) ) ; return false ; }
Check the health of the custom witness.

@param  bool  $status
@return bool
Check the health of the custom witness .