Lightning.Workflows.Trigger (Lightning v2.13.3)

View Source

Ecto model for Triggers.

Triggers represent the criteria in which a Job might be invoked.

Types

Webhook (default)

A webhook trigger allows a Job to invoked (via Lightning.Invocation) when it's endpoint is called.

Summary

Types

t()

@type t() :: %Lightning.Workflows.Trigger{
  __meta__: Ecto.Schema.Metadata.t(),
  comment: term(),
  cron_expression: term(),
  custom_path: term(),
  delete: term(),
  edges: term(),
  enabled: term(),
  has_auth_method: term(),
  id: Ecto.UUID.t() | nil,
  inserted_at: term(),
  kafka_configuration: term(),
  type: term(),
  updated_at: term(),
  webhook_auth_methods: term(),
  workflow: term(),
  workflow_id: term()
}

trigger_type()

@type trigger_type() :: :webhook | :cron

Functions

cast_changeset(trigger, attrs)

new(attrs)

validate(changeset)

with_auth_methods_query()