BB.Command.Event (bb v0.15.2)

Copy Markdown View Source

Payload type for command execution events.

Published to [:command, command_name, execution_id] path during command lifecycle.

Summary

Types

status()

@type status() :: :started | :succeeded | :failed | :cancelled

t()

@type t() :: %BB.Command.Event{data: map(), status: status()}

Functions

new(frame_id, attrs)

@spec new(
  atom(),
  keyword()
) :: {:ok, BB.Message.t()} | {:error, term()}