Coffrify.Resources.WebhookExtras (Coffrify v0.9.0)

View Source

Webhook extras — delivery deep-inspection, search, health metrics.

Summary

Functions

Full delivery details (payload + response headers/body).

Aggregated health metrics per webhook over the last hours hours.

Search deliveries by event id, status, webhook id, or freshness.

Functions

get_delivery(client, id)

@spec get_delivery(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Full delivery details (payload + response headers/body).

health_metrics(client, hours \\ 24)

@spec health_metrics(Coffrify.t(), pos_integer()) ::
  {:ok, map()} | {:error, Exception.t()}

Aggregated health metrics per webhook over the last hours hours.

search_deliveries(client, opts \\ [])

@spec search_deliveries(
  Coffrify.t(),
  keyword()
) :: {:ok, map()} | {:error, Exception.t()}

Search deliveries by event id, status, webhook id, or freshness.