QueueMessage Class
A Queue message object.
- Inheritance
-
azure.functions._abc.QueueMessageQueueMessage
Constructor
QueueMessage(*, id: Optional[str] = None, body: Optional[Union[str, bytes]] = None, pop_receipt: Optional[str] = None)
Parameters
- body
A string or bytes instance specifying the message body.
Methods
get_body |
Return message content as bytes. |
get_json |
Decode and return message content as a JSON object. |
get_body
Return message content as bytes.
get_body() -> bytes
get_json
Decode and return message content as a JSON object.
get_json() -> Any
Returns
Decoded JSON data.
Exceptions
when the body of the message does not contain valid JSON data.
Attributes
dequeue_count
The number of times this message has been dequeued.
expiration_time
A datetime object with the message expiry time.
id
Message ID.
insertion_time
A datetime object with the message queue insertion time.
pop_receipt
The message pop receipt token as a string.
time_next_visible
A datetime object with the time the message will be visible next.
Feedback
Submit and view feedback for