Cronario\Queue::getStats PHP Method

getStats() public method

Keys that can be expected to be returned are the following:
public getStats ( ) : array
return array
    public function getStats()
    {
        $result = [self::STATS_QUEUES_LIST => [], self::STATS_JOBS_TOTAL => 0, self::STATS_JOBS_READY => 0, self::STATS_JOBS_RESERVED => 0, self::STATS_JOBS_DELAYED => 0, self::STATS_JOBS_BURIED => 0];
        $queueList = $this->getQueueNames();
        if (count($queueList) == 0) {
            return $result;
        }
        $result[self::STATS_QUEUES_LIST] = $queueList;
        foreach ($queueList as $queueName) {
            $itemStats = $this->getQueueInfo($queueName);
            $result[self::STATS_JOBS_READY] += $itemStats[self::STATS_JOBS_READY];
            $result[self::STATS_JOBS_RESERVED] += $itemStats[self::STATS_JOBS_RESERVED];
            $result[self::STATS_JOBS_DELAYED] += $itemStats[self::STATS_JOBS_DELAYED];
            $result[self::STATS_JOBS_BURIED] += $itemStats[self::STATS_JOBS_BURIED];
            $result[self::STATS_JOBS_TOTAL] += $itemStats[self::STATS_JOBS_TOTAL];
            $result[self::STATS_QUEUES][$queueName] = $itemStats;
        }
        return $result;
    }