SquatchMail.WebhookLog (SquatchMail v0.1.0)

Copy Markdown View Source

A raw audit record of an inbound webhook payload (typically SNS/SES).

Every inbound payload is logged with its processing status so that ingestion failures can be inspected and replayed.

Summary

Functions

Builds a changeset for a webhook log entry.

Returns the list of valid webhook log statuses.

Types

t()

@type t() :: %SquatchMail.WebhookLog{
  __meta__: term(),
  error: term(),
  id: term(),
  inserted_at: term(),
  message_type: term(),
  payload: term(),
  provider: term(),
  status: term(),
  updated_at: term()
}

Functions

changeset(log, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for a webhook log entry.

statuses()

@spec statuses() :: [String.t()]

Returns the list of valid webhook log statuses.