Skip to content

WebhookScoreSummary

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A score window threshold’s webhook summary.

public sealed record WebhookScoreSummary : IEquatable<WebhookScoreSummary>

objectWebhookScoreSummary

IEquatable<WebhookScoreSummary>

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

public WebhookScoreSummary()

The window’s average score (0-100).

public required double AverageScore { get; init; }

double

The number of samples (scored runs) in the window.

public required long SampleCount { get; init; }

long

The exceeded low-score threshold.

public required int Threshold { get; init; }

int

The window’s end (UTC).

public DateTimeOffset? WindowEnd { get; init; }

DateTimeOffset?

The window’s start (UTC).

public DateTimeOffset? WindowStart { get; init; }

DateTimeOffset?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WebhookScoreSummary? other)

other WebhookScoreSummary?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookScoreSummary?, WebhookScoreSummary?)

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

left WebhookScoreSummary?

right WebhookScoreSummary?

bool

operator !=(WebhookScoreSummary?, WebhookScoreSummary?)

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

left WebhookScoreSummary?

right WebhookScoreSummary?

bool