ArchAstro.Types.AutomationRun (archastro v0.2.0)

Copy Markdown

A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AutomationRun{
  app: String.t(),
  automation: String.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  event_id: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  participants:
    %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  payload: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  result: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  status: String.t(),
  team: String.t() | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t(),
  user: String.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()