public function isWaitTimeOk($queue)
    {
        if ($queue->alert_wait_time_greater_than < 1) {
            return true;
        }

        if ($queue->current_wait_time <= $queue->alert_wait_time_greater_than) {
            if ($this->eye->status()->isSick('queue_wait_time_'.$queue->id)) {
                $this->eye->notifier()->alert(new WaitOk(['queue' => $queue]));
            }

            $this->eye->status()->setHealthy('queue_wait_time_'.$queue->id);

            return true;
        }

        if ($this->eye->status()->isHealthy('queue_wait_time_'.$queue->id)) {
            $this->eye->notifier()->alert(new WaitLong(['queue' => $queue]));
        }

        $this->eye->status()->setSick('queue_wait_time_'.$queue->id);

        return false;
    }
public function isWaitTimeOk($queue)
    {
        if ($queue->alert_wait_time_greater_than < 1) {
            return true;
        }

        if ($queue->current_wait_time <= $queue->alert_wait_time_greater_than) {
            if ($this->eye->status()->isSick('queue_wait_time_'.$queue->id)) {
                $this->eye->notifier()->alert(new WaitOk(['queue' => $queue]));
            }

            $this->eye->status()->setHealthy('queue_wait_time_'.$queue->id);

            return true;
        }

        if ($this->eye->status()->isHealthy('queue_wait_time_'.$queue->id)) {
            $this->eye->notifier()->alert(new WaitLong(['queue' => $queue]));
        }

        $this->eye->status()->setSick('queue_wait_time_'.$queue->id);

        return false;
    }
public function isWaitTimeOk ( $ queue ) { if ( $ queue -> alert_wait_time_greater_than < 1 ) { return true ; } if ( $ queue -> current_wait_time <= $ queue -> alert_wait_time_greater_than ) { if ( $ this -> eye -> status ( ) -> isSick ( 'queue_wait_time_' . $ queue -> id ) ) { $ this -> eye -> notifier ( ) -> alert ( new WaitOk ( [ 'queue' => $ queue ] ) ) ; } $ this -> eye -> status ( ) -> setHealthy ( 'queue_wait_time_' . $ queue -> id ) ; return true ; } if ( $ this -> eye -> status ( ) -> isHealthy ( 'queue_wait_time_' . $ queue -> id ) ) { $ this -> eye -> notifier ( ) -> alert ( new WaitLong ( [ 'queue' => $ queue ] ) ) ; } $ this -> eye -> status ( ) -> setSick ( 'queue_wait_time_' . $ queue -> id ) ; return false ; }
Check if the queue wait time is ok.

@param  \Eyewitness\Eye\Repo\Queue  $queue
@return bool
Check if the queue wait time is ok .