Stats

class oci.queue.models.Stats(**kwargs)

Bases: object

The stats for a queue or a dead letter queue.

Methods

__init__(**kwargs) Initializes a new Stats object with values from keyword arguments.

Attributes

in_flight_messages [Required] Gets the in_flight_messages of this Stats.
size_in_bytes [Required] Gets the size_in_bytes of this Stats.
visible_messages [Required] Gets the visible_messages of this Stats.
__init__(**kwargs)

Initializes a new Stats object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • visible_messages (int) – The value to assign to the visible_messages property of this Stats.
  • in_flight_messages (int) – The value to assign to the in_flight_messages property of this Stats.
  • size_in_bytes (int) – The value to assign to the size_in_bytes property of this Stats.
in_flight_messages

[Required] Gets the in_flight_messages of this Stats. The approximate number of messages delivered to a consumer but not yet deleted and so unavailable for re-delivery.

Returns:The in_flight_messages of this Stats.
Return type:int
size_in_bytes

[Required] Gets the size_in_bytes of this Stats. The approximate size of the queue in bytes. Sum of the size of visible and in-flight messages.

Returns:The size_in_bytes of this Stats.
Return type:int
visible_messages

[Required] Gets the visible_messages of this Stats. The approximate number of visible messages (available for delivery) currently in the queue.

Returns:The visible_messages of this Stats.
Return type:int