KubeMQ.ChannelInfo (kubemq v1.0.1)

Copy Markdown View Source

Information about a KubeMQ channel returned from list operations.

Fields

  • name - Channel name
  • type - Channel type string (e.g., "events", "queues")
  • last_activity - Unix timestamp of last activity
  • is_active - Whether the channel currently has active clients
  • incoming - Incoming message statistics
  • outgoing - Outgoing message statistics

Usage

iex> info = %KubeMQ.ChannelInfo{name: "orders", type: "queues"}
iex> info.name
"orders"
iex> info.is_active
false

Summary

Functions

Parse a list of channel info structs from a JSON-encoded response body.

Types

t()

@type t() :: %KubeMQ.ChannelInfo{
  incoming: non_neg_integer(),
  is_active: boolean(),
  last_activity: integer(),
  name: String.t(),
  outgoing: non_neg_integer(),
  type: String.t()
}

Functions

from_json(data)

@spec from_json(binary()) :: {:ok, [t()]} | {:error, term()}

Parse a list of channel info structs from a JSON-encoded response body.