Bånder

QueueMetricsService
in package

Table of Contents

Methods

collect()  : array<string|int, QueueMetric>
Collects and aggregates queue metrics for the last configured number of days.

Methods

collect()

Collects and aggregates queue metrics for the last configured number of days.

public collect([int $aggregateDays = 14 ]) : array<string|int, QueueMetric>

This function retrieves various queue metrics, including the total jobs executed, total execution time, and average execution time over a specified period of days configured in the application settings. It also retrieves the same metrics for the preceding period for comparison.

Metrics are returned as an array of QueueMetric objects.

Parameters
$aggregateDays : int = 14
Return values
array<string|int, QueueMetric>

        
On this page

Search results