PutMessagesResult

class oci.streaming.models.PutMessagesResult(**kwargs)

Bases: object

The response to a put_messages() request. It indicates the number of failed messages as well as an array of results for successful and failed messages.

__init__(**kwargs)

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

Parameters:
  • failures (int) -- The value to assign to the failures property of this PutMessagesResult.
  • entries (list[PutMessagesResultEntry]) -- The value to assign to the entries property of this PutMessagesResult.
entries

Gets the entries of this PutMessagesResult. An array of items representing the result of each message. The order is guaranteed to be the same as in the PutMessagesDetails object. If a message was successfully appended to the stream, the entry includes the offset, partition, and timestamp. If a message failed to be appended to the stream, the entry includes the error and errorMessage.

Returns:The entries of this PutMessagesResult.
Return type:list[PutMessagesResultEntry]
failures

[Required] Gets the failures of this PutMessagesResult. The number of messages that failed to be added to the stream.

Returns:The failures of this PutMessagesResult.
Return type:int