Skip to main content

OrgWebhookDeliveryHealth

@gravity-rail/sdk


@gravity-rail/sdk / OrgWebhookDeliveryHealth

Interface: OrgWebhookDeliveryHealth

How deliveries to one endpoint are going, from the activities database.

state is held while the drain holds the endpoint's queue (it sends one probe at nextProbeAt; the first success releases the backlog), failing while attempts fail but the queue still flows, and healthy otherwise, including an endpoint with no attempt yet. failing has no time window, like the drain's own counter: the run ends only at the next success, however long ago its last failure was. Health never changes status: a paused endpoint can be held, and it sends no probe until it is resumed.

Closed vocabulary, counts and timestamps only. lastFailureClass is the drain's failure_class vocabulary (network, http_4xx, http_5xx, unsafe_target, missing_secret, retryable).

Properties​

consecutiveFailures​

consecutiveFailures: number


failingSince​

failingSince: string | null


lastFailureAt​

lastFailureAt: string | null


lastFailureClass​

lastFailureClass: string | null


lastSuccessAt​

lastSuccessAt: string | null


nextProbeAt​

nextProbeAt: string | null


pendingDeliveries​

pendingDeliveries: number


state​

state: OrgWebhookDeliveryHealthState