Method: Mongo::Protocol::GetMore#payload

Defined in:
lib/mongo/protocol/get_more.rb

#payloadBSON::Document

Return the event payload for monitoring.

Examples:

Return the event payload.

message.payload

Returns:

  • (BSON::Document)

    The event payload.

Since:

  • 2.1.0



59
60
61
62
63
64
65
66
# File 'lib/mongo/protocol/get_more.rb', line 59

def payload
  BSON::Document.new(
    command_name: 'getMore',
    database_name: @database,
    command: upconverter.command,
    request_id: request_id
  )
end