Karta. Webhooks. Delivery
(Karta v1.0.0)
One event for one webhook, and where its sending stands:
:pending- not sent yet, or failed and to be tried again atnext_attempt_at;:succeeded- the receiver answered with a 2xx status;:failed- every attempt failed, or the webhook was switched off before it succeeded (the dead letters; they can be sent again).
attempts counts the requests made since it was queued (or replayed:
a replay starts it again from 0; Karta.Webhooks.Attempt keeps every
request); last_attempt_at, last_status
(the HTTP status, nil when there was no answer) and last_error (in
words) describe the latest. sending_until is set while a request is
under way (Karta.Webhooks.Sender).
Summary
Types
@type t() :: %Karta.Webhooks.Delivery{ __meta__: term(), attempts: term(), event: term(), event_id: term(), id: term(), inserted_at: term(), last_attempt_at: term(), last_error: term(), last_status: term(), next_attempt_at: term(), sending_until: term(), state: term(), updated_at: term(), webhook: term(), webhook_id: term() }