Metrics

data class Metrics(val queueName: String, val queueLength: Long, val newestMsgAgeSec: Int, val oldestMsgAgeSec: Int, val totalMessages: Long, val scrapeTime: Instant, val queueVisibleLength: Long)(source)

Represents the metrics of a message queue at a specific point in time.

Constructors

Link copied to clipboard
constructor(queueName: String, queueLength: Long, newestMsgAgeSec: Int, oldestMsgAgeSec: Int, totalMessages: Long, scrapeTime: Instant, queueVisibleLength: Long)

Properties

Link copied to clipboard

The age of the newest message in the queue, measured in seconds.

Link copied to clipboard

The age of the oldest message in the queue, measured in seconds.

Link copied to clipboard

The total number of messages in the queue.

Link copied to clipboard

The name of the queue.

Link copied to clipboard

The number of messages in the queue that are currently visible and ready for processing.

Link copied to clipboard

The timestamp indicating when these metrics were recorded.

Link copied to clipboard

The cumulative number of messages processed by the queue.