protected function handleStatusAlerts($db)
    {
        if ($db['status']) {
            if ($this->eye->status()->isSick('database_status_'.$db['connection'])) {
                $this->eye->notifier()->alert(new Online($db));
            }

            $this->eye->status()->setHealthy('database_status_'.$db['connection']);
        } else {
            if ($this->eye->status()->isHealthy('database_status_'.$db['connection'])) {
                $this->eye->notifier()->alert(new Offline($db));
            }

            $this->eye->status()->setSick('database_status_'.$db['connection']);
        }

    }
protected function handleStatusAlerts($db)
    {
        if ($db['status']) {
            if ($this->eye->status()->isSick('database_status_'.$db['connection'])) {
                $this->eye->notifier()->alert(new Online($db));
            }

            $this->eye->status()->setHealthy('database_status_'.$db['connection']);
        } else {
            if ($this->eye->status()->isHealthy('database_status_'.$db['connection'])) {
                $this->eye->notifier()->alert(new Offline($db));
            }

            $this->eye->status()->setSick('database_status_'.$db['connection']);
        }

    }
protected function handleStatusAlerts ( $ db ) { if ( $ db [ 'status' ] ) { if ( $ this -> eye -> status ( ) -> isSick ( 'database_status_' . $ db [ 'connection' ] ) ) { $ this -> eye -> notifier ( ) -> alert ( new Online ( $ db ) ) ; } $ this -> eye -> status ( ) -> setHealthy ( 'database_status_' . $ db [ 'connection' ] ) ; } else { if ( $ this -> eye -> status ( ) -> isHealthy ( 'database_status_' . $ db [ 'connection' ] ) ) { $ this -> eye -> notifier ( ) -> alert ( new Offline ( $ db ) ) ; } $ this -> eye -> status ( ) -> setSick ( 'database_status_' . $ db [ 'connection' ] ) ; } }
Handle any status issues.

@param  string  $db
@return void
Handle any status issues .