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

        if (Carbon::now()->diffInSeconds($queue->last_heartbeat) <= $queue->alert_heartbeat_greater_than) {
            if ($this->eye->status()->isSick('queue_online_'.$queue->id)) {
                $this->eye->notifier()->alert(new Online(['queue' => $queue]));
            }

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

            return true;
        }

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

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

        return false;
    }