metrics
Retrieves metrics for the specified queue.
Return
A Result containing the metrics for the specified queue. If no metrics are found, or if multiple metrics are retrieved for the queue, an error is returned.
Parameters
queue
The name of the queue for which to retrieve metrics.
Retrieves metrics for every queue using the pgmq.metrics_all() query.
Return
a Result containing a list of Metrics objects if the retrieval is successful, or an error result otherwise.