metrics

suspend fun metrics(queue: String): Result<Metrics>(source)

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.


suspend fun metrics(): Result<List<Metrics>>(source)

Retrieves a list of metrics from the database using the pgmq.metrics() query.

Return

a Result containing a list of Metrics objects if the retrieval is successful, or an error result otherwise.