QueueMessage Class

Represents a queue message.

Inheritance
azure.storage.queue._shared.models.DictMixin
QueueMessage

Constructor

QueueMessage(content=None)

Parameters

content
<xref:obj>
default value: None

The message content. Type is determined by the decode_function set on the service. Default is str.

Variables

id
str

A GUID value assigned to the message by the Queue service that identifies the message in the queue. This value may be used together with the value of pop_receipt to delete a message from the queue after it has been retrieved with the receive messages operation.

inserted_on
<xref:date>

A UTC date value representing the time the messages was inserted.

expires_on
<xref:date>

A UTC date value representing the time the message expires.

dequeue_count
int

Begins with a value of 1 the first time the message is received. This value is incremented each time the message is subsequently received.

pop_receipt
str

A receipt str which can be used together with the message_id element to delete a message from the queue after it has been retrieved with the receive messages operation. Only returned by receive messages operations. Set to None for peek messages.

next_visible_on
<xref:date>

A UTC date value representing the time the message will next be visible. Only returned by receive messages operations. Set to None for peek messages.