pi_portal.modules.tasks.queue.bases.queue_base.QueueMetrics

class pi_portal.modules.tasks.queue.bases.queue_base.QueueMetrics(length: int, acked_length: int, unacked_length: int, storage_mb: float)[source]

Bases: tuple

A collection of metrics for the task queue.

acked_length: int

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

length: int

Alias for field number 0

storage_mb: float

Alias for field number 3

unacked_length: int

Alias for field number 2