Reply constructed by a command subscriber to respond to a received command.
Fields
request_id(String.t()) — ID of the original command (fromKubeMQ.CommandReceive.id).response_to(String.t()) — Reply channel (fromKubeMQ.CommandReceive.reply_channel).metadata(String.t() | nil) — Optional response metadata.body(binary() | nil) — Optional response payload.client_id(String.t() | nil) — Responder identifier. Set automatically.executed(boolean()) — Whether the command was executed successfully. Default:false.error(String.t() | nil) — Error message if execution failed.tags(%{String.t() => String.t()}) — Key-value tags. Default:%{}.span(binary() | nil) — Tracing span context (internal).
Usage
reply = KubeMQ.CommandReply.new(
request_id: command_receive.id,
response_to: command_receive.reply_channel,
executed: true
)