WebhookDelivery
AgentPrism.Abstractions.dllA single delivery record.
public sealed record WebhookDelivery : IEquatable<WebhookDelivery>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”This record is not a queue row: scheduling, leasing, and
retry live in the jobs table. The WebhookDelivery.Attempt
field here only reports history.
Constructors
Section titled “Constructors”WebhookDelivery()
Section titled “ WebhookDelivery()”public WebhookDelivery()Properties
Section titled “Properties”Attempt
Section titled “ Attempt”The number of attempts made.
public int Attempt { get; init; }Property Value
Section titled “Property Value”CreatedAt
Section titled “ CreatedAt”The creation time (UTC).
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”DeliveredAt
Section titled “ DeliveredAt”The successful delivery time (UTC).
public DateTimeOffset? DeliveredAt { get; init; }Property Value
Section titled “Property Value”The most recent error message.
public string? Error { get; init; }Property Value
Section titled “Property Value”EventType
Section titled “ EventType”The event name.
public required string EventType { get; init; }Property Value
Section titled “Property Value”The delivery identifier. Sent in the request as the X-AgentPrism-Delivery header.
public required Guid Id { get; init; }Property Value
Section titled “Property Value”Payload
Section titled “ Payload”The JSON body sent.
public required string Payload { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Carries only a summary: identifier, status, agent, tokens, cost. Message content never sits here.
ResponseCode
Section titled “ ResponseCode”The HTTP status code the recipient returned. null if a connection could not be established.
public int? ResponseCode { get; init; }Property Value
Section titled “Property Value”int?
Status
Section titled “ Status”The delivery’s status.
public required WebhookDeliveryStatus Status { get; init; }Property Value
Section titled “Property Value”SubscriptionId
Section titled “ SubscriptionId”The subscription identifier.
public required Guid SubscriptionId { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant identifier.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(WebhookDelivery?)
Section titled “ Equals(WebhookDelivery?)”public bool Equals(WebhookDelivery? other)Parameters
Section titled “Parameters”other WebhookDelivery?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(WebhookDelivery?, WebhookDelivery?)
Section titled “ operator ==(WebhookDelivery?, WebhookDelivery?)”public static bool operator ==(WebhookDelivery? left, WebhookDelivery? right)Parameters
Section titled “Parameters”left WebhookDelivery?
right WebhookDelivery?
Returns
Section titled “Returns”operator !=(WebhookDelivery?, WebhookDelivery?)
Section titled “ operator !=(WebhookDelivery?, WebhookDelivery?)”public static bool operator !=(WebhookDelivery? left, WebhookDelivery? right)Parameters
Section titled “Parameters”left WebhookDelivery?
right WebhookDelivery?