ArchAstro.Types.AgentRoutine (archastro v0.2.0)

Copy Markdown

An agent routine defines a reusable handler — script, preset, or chain — that runs in response to events or on a schedule.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AgentRoutine{
  acl: ArchAstro.Types.Acl.t() | ArchAstro.Unset.t(),
  agent: String.t() | ArchAstro.Unset.t(),
  app: String.t() | ArchAstro.Unset.t(),
  config: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  description: String.t() | ArchAstro.Unset.t(),
  event_config:
    %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  event_type: String.t() | ArchAstro.Unset.t(),
  handler_type: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  last_applied_template_config: String.t() | ArchAstro.Unset.t(),
  lookup_key: String.t() | ArchAstro.Unset.t(),
  message_policy: ArchAstro.Types.MessagePolicy.t() | ArchAstro.Unset.t(),
  metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  name: String.t() | ArchAstro.Unset.t(),
  preset_config: ArchAstro.Types.PresetConfig.t() | ArchAstro.Unset.t(),
  preset_name: String.t() | ArchAstro.Unset.t(),
  schedule: String.t() | ArchAstro.Unset.t(),
  script: String.t() | ArchAstro.Unset.t(),
  status: String.t() | ArchAstro.Unset.t(),
  steps: [%{optional(String.t()) => ArchAstro.JSON.t()}] | ArchAstro.Unset.t(),
  trigger_context: 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()