KubeMQ.CommandResponse (kubemq v1.0.1)

Copy Markdown View Source

Response received after sending a command via KubeMQ.Client.send_command/2.

Fields

  • command_id (String.t()) — ID of the command that was executed.
  • executed (boolean()) — Whether the command was executed successfully.
  • executed_at (integer()) — Unix timestamp when the command was executed.
  • error (String.t() | nil) — Error message if execution failed.

  • tags (%{String.t() => String.t()}) — Key-value tags from the responder.

Summary

Types

t()

@type t() :: %KubeMQ.CommandResponse{
  command_id: String.t(),
  error: String.t() | nil,
  executed: boolean(),
  executed_at: integer(),
  tags: %{required(String.t()) => String.t()}
}

Functions

from_response(response)

@spec from_response(map()) :: t()

new(opts \\ [])

@spec new(keyword()) :: t()