protected function notifyIfChanges($scheduler)
    {
        if (is_null($scheduler->healthy)) {
            return;
        }

        if ($this->wasUpAndIsNowDown($scheduler)) {
            $scheduler->healthy = false;
            $scheduler->save();

            if ($scheduler->alert_on_missed) {
                $this->eye->notifier()->alert(new Missed(['scheduler' => $scheduler]));
            }
        }
    }
protected function notifyIfChanges($scheduler)
    {
        if (is_null($scheduler->healthy)) {
            return;
        }

        if ($this->wasUpAndIsNowDown($scheduler)) {
            $scheduler->healthy = false;
            $scheduler->save();

            if ($scheduler->alert_on_missed) {
                $this->eye->notifier()->alert(new Missed(['scheduler' => $scheduler]));
            }
        }
    }
protected function notifyIfChanges ( $ scheduler ) { if ( is_null ( $ scheduler -> healthy ) ) { return ; } if ( $ this -> wasUpAndIsNowDown ( $ scheduler ) ) { $ scheduler -> healthy = false ; $ scheduler -> save ( ) ; if ( $ scheduler -> alert_on_missed ) { $ this -> eye -> notifier ( ) -> alert ( new Missed ( [ 'scheduler' => $ scheduler ] ) ) ; } } }
Check if the status of the scheduler has changed, and send
a notification accordingly if needed.

@param  \Eyewitness\Eye\Repo\Scheduler  $scheduler
@return void
Check if the status of the scheduler has changed and send a notification accordingly if needed .