class CheckQueues

Properties

protected Factory $queue

The queue manager instance.

protected Factory $cache

The cache manager instance.

Methods

static string
getLastReportCacheKey(array $config)

Get the cache key for the stored time of the last notification for a queue and connection.

static string
getFirstAlertCacheKey(array $config)

Get the cache key for the stored time of the first alert registered for a queue and connection.

__construct(Factory $queue, Factory $cache)

Create a new instance.

__invoke()

Run the check.

checkQueue(array $config)

Check a single queue and send an alert if necessary.

Details

at line 31
static string getLastReportCacheKey(array $config)

Get the cache key for the stored time of the last notification for a queue and connection.

Parameters

array $config

Return Value

string

at line 40
static string getFirstAlertCacheKey(array $config)

Get the cache key for the stored time of the first alert registered for a queue and connection.

Parameters

array $config

Return Value

string

at line 48
__construct(Factory $queue, Factory $cache)

Create a new instance.

Parameters

Factory $queue
Factory $cache

at line 57
__invoke()

Run the check.

at line 70
protected checkQueue(array $config)

Check a single queue and send an alert if necessary.

Parameters

array $config