pub struct Endpoint {
pub created: Option<String>,
pub deliveries7d: Option<i32>,
pub description: Option<String>,
pub events: Option<Vec<String>>,
pub failures7d: Option<i32>,
pub id: Option<String>,
pub org: Option<String>,
pub secret: Option<String>,
pub status: Option<String>,
pub updated: Option<String>,
pub url: Option<String>,
}Fields§
§created: Option<String>CreatedAt is when the endpoint was registered, RFC3339 in UTC — stored in that spelling because it sorts as a string.
deliveries7d: Option<i32>Deliveries7d is how many deliveries SETTLED in the trailing 7 days — the attempts that ended ok or failed, so a delivery still retrying is in neither counter yet. It is counted from the log at read time rather than stored, and it is filled only on a list or a get; a create answers 0 because there is no history, which is why it is never omitted.
description: Option<String>Description is the operator’s own label for the endpoint. Never sent anywhere.
events: Option<Vec<String>>Events are the subject patterns this endpoint subscribes to ("commerce.order.>"). An EMPTY list means every event, not none.
failures7d: Option<i32>Failures7d is how many of those settled as failed — the subscriber never accepted it and no further attempt will be made. It is the numerator to Deliveries7d, over the same window.
id: Option<String>ID is the endpoint’s handle, server-minted and stable for its life. It is what every other route here addresses.
org: Option<String>Org is the tenant that owns the endpoint, taken from the validated principal rather than from any request field.
secret: Option<String>Secret is the HMAC-SHA256 signing key a subscriber recomputes the signature with. It is returned exactly ONCE, on create: a later read of the endpoint omits it, so a lost secret is replaced rather than recovered.
status: Option<String>Status is "active" or "disabled" — nothing else is accepted. A disabled endpoint keeps its subscription and receives no deliveries, except a manual test send, which goes out anyway.
updated: Option<String>UpdatedAt is when its url, events, status or description last changed.
url: Option<String>URL is where the POST goes. Changing it is the one edit that redirects an org’s events, which is why it is never bindable from a query string.