Skip to content

WebhookQuotaSummary

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

An exceeded quota threshold’s webhook summary.

public sealed record WebhookQuotaSummary : IEquatable<WebhookQuotaSummary>

objectWebhookQuotaSummary

IEquatable<WebhookQuotaSummary>

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

public WebhookQuotaSummary()

The agent the rule is bound to. null for tenant-wide.

public string? AgentName { get; init; }

string?

The defined limit.

public required decimal Limit { get; init; }

decimal

The exceeded metric.

public required QuotaMetric Metric { get; init; }

QuotaMetric

The counter’s interval.

public required QuotaPeriod Period { get; init; }

QuotaPeriod

The time the counter resets (UTC).

public DateTimeOffset? ResetsAt { get; init; }

DateTimeOffset?

The exceeded threshold percentage: 80 or 100.

public required int ThresholdPercent { get; init; }

int

The current consumption.

public required decimal Used { get; init; }

decimal

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(WebhookQuotaSummary? other)

other WebhookQuotaSummary?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(WebhookQuotaSummary?, WebhookQuotaSummary?)

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

left WebhookQuotaSummary?

right WebhookQuotaSummary?

bool

operator !=(WebhookQuotaSummary?, WebhookQuotaSummary?)

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

left WebhookQuotaSummary?

right WebhookQuotaSummary?

bool