Skip to content

WebhookDelivery

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A single delivery record.

public sealed record WebhookDelivery : IEquatable<WebhookDelivery>

objectWebhookDelivery

IEquatable<WebhookDelivery>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

This record is not a queue row: scheduling, leasing, and retry live in the jobs table. The WebhookDelivery.Attempt field here only reports history.

public WebhookDelivery()

The number of attempts made.

public int Attempt { get; init; }

int

The creation time (UTC).

public required DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

The successful delivery time (UTC).

public DateTimeOffset? DeliveredAt { get; init; }

DateTimeOffset?

The most recent error message.

public string? Error { get; init; }

string?

The event name.

public required string EventType { get; init; }

string

The delivery identifier. Sent in the request as the X-AgentPrism-Delivery header.

public required Guid Id { get; init; }

Guid

The JSON body sent.

public required string Payload { get; init; }

string

Carries only a summary: identifier, status, agent, tokens, cost. Message content never sits here.

The HTTP status code the recipient returned. null if a connection could not be established.

public int? ResponseCode { get; init; }

int?

The delivery’s status.

public required WebhookDeliveryStatus Status { get; init; }

WebhookDeliveryStatus

The subscription identifier.

public required Guid SubscriptionId { get; init; }

Guid

The tenant identifier.

public required string TenantId { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WebhookDelivery? other)

other WebhookDelivery?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookDelivery?, WebhookDelivery?)

Section titled “ operator ==(WebhookDelivery?, WebhookDelivery?)”
public static bool operator ==(WebhookDelivery? left, WebhookDelivery? right)

left WebhookDelivery?

right WebhookDelivery?

bool

operator !=(WebhookDelivery?, WebhookDelivery?)

Section titled “ operator !=(WebhookDelivery?, WebhookDelivery?)”
public static bool operator !=(WebhookDelivery? left, WebhookDelivery? right)

left WebhookDelivery?

right WebhookDelivery?

bool