MetricsRepository
interface MetricsRepository
Methods
Get all of the class names that have metrics measurements.
Get all of the queues that have metrics measurements.
Get the jobs processed per minute since the last snapshot.
Get the application's total throughput since the last snapshot.
Get the throughput for a given job.
Get the throughput for a given queue.
Get the average runtime for a given job in milliseconds.
Get the average runtime for a given queue in milliseconds.
Get the queue that has the longest runtime.
Get the queue that has the most throughput.
Increment the metrics information for a job.
Increment the metrics information for a queue.
Get all of the snapshots for the given job.
Get all of the snapshots for the given queue.
Store a snapshot of the metrics information.
Attempt to acquire a lock to monitor the queue wait times.
Clear the metrics for a key.
Delete all stored metrics information.
Details
at line 12
array
measuredJobs()
Get all of the class names that have metrics measurements.
at line 17
array
measuredQueues()
Get all of the queues that have metrics measurements.
at line 22
float
jobsProcessedPerMinute()
Get the jobs processed per minute since the last snapshot.
at line 27
int
throughput()
Get the application's total throughput since the last snapshot.
at line 32
int
throughputForJob(string $job)
Get the throughput for a given job.
at line 37
int
throughputForQueue(string $queue)
Get the throughput for a given queue.
at line 42
float
runtimeForJob(string $job)
Get the average runtime for a given job in milliseconds.
at line 47
float
runtimeForQueue(string $queue)
Get the average runtime for a given queue in milliseconds.
at line 52
string|null
queueWithMaximumRuntime()
Get the queue that has the longest runtime.
at line 57
string|null
queueWithMaximumThroughput()
Get the queue that has the most throughput.
at line 62
void
incrementJob(string $job, float|null $runtime)
Increment the metrics information for a job.
at line 67
void
incrementQueue(string $queue, float|null $runtime)
Increment the metrics information for a queue.
at line 72
array
snapshotsForJob(string $job)
Get all of the snapshots for the given job.
at line 77
array
snapshotsForQueue(string $queue)
Get all of the snapshots for the given queue.
at line 82
void
snapshot()
Store a snapshot of the metrics information.
at line 87
bool
acquireWaitTimeMonitorLock()
Attempt to acquire a lock to monitor the queue wait times.
at line 92
void
forget(string $key)
Clear the metrics for a key.
at line 97
void
clear()
Delete all stored metrics information.