Package africa.sendbyte.webhooks
Class WebhookDelivery
java.lang.Object
africa.sendbyte.webhooks.WebhookDelivery
A single webhook delivery attempt, from
Webhooks.deliveries(String) or the
fresh attempt created by Webhooks.replay(String).
On a just-created replay, the outcome fields (statusCode, latencyMs,
attemptedAt, succeeded) are null until the attempt runs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionISO 8601 timestamp of the attempt, ornullif not yet attempted.The event type that triggered this delivery, e.g.getId()Unique delivery identifier (prefixeddel_); pass toWebhooks.replay(String).Round-trip latency in milliseconds, ornullif not yet attempted.For a replay, the id of the original delivery it was created from;nullotherwise.HTTP status your endpoint returned;0if the connection failed,nullif not yet attempted.trueif your endpoint returned 2xx in time;nullif not yet attempted.voidsetAttemptedAt(String attemptedAt) voidsetEventType(String eventType) voidvoidsetLatencyMs(Integer latencyMs) voidsetReplayOf(String replayOf) voidsetStatusCode(Integer statusCode) voidsetSucceeded(Boolean succeeded)
-
Constructor Details
-
WebhookDelivery
public WebhookDelivery()
-
-
Method Details
-
getId
Unique delivery identifier (prefixeddel_); pass toWebhooks.replay(String). -
setId
-
getEventType
The event type that triggered this delivery, e.g.email.bounced. -
setEventType
-
getStatusCode
HTTP status your endpoint returned;0if the connection failed,nullif not yet attempted. -
setStatusCode
-
getLatencyMs
Round-trip latency in milliseconds, ornullif not yet attempted. -
setLatencyMs
-
getAttemptedAt
ISO 8601 timestamp of the attempt, ornullif not yet attempted. -
setAttemptedAt
-
getSucceeded
trueif your endpoint returned 2xx in time;nullif not yet attempted. -
setSucceeded
-
getReplayOf
For a replay, the id of the original delivery it was created from;nullotherwise. -
setReplayOf
-