Skip to content

QuotaSaveRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Request body for saving a quota rule.

public sealed record QuotaSaveRequest : IEquatable<QuotaSaveRequest>

objectQuotaSaveRequest

IEquatable<QuotaSaveRequest>

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

public QuotaSaveRequest()

Gets the agent the rule is bound to. If left empty, the rule applies to all of the tenant’s runs.

public string? AgentName { get; init; }

string?

Gets whether the rule is enabled.

public bool Enabled { get; init; }

bool

Gets the maximum monetary amount per period.

public decimal? MaxCost { get; init; }

decimal?

Gets the maximum number of runs per period.

public long? MaxRuns { get; init; }

long?

Gets the maximum number of tokens per period.

public long? MaxTokens { get; init; }

long?

Gets the counter’s reset interval.

public QuotaPeriod Period { get; init; }

QuotaPeriod

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(QuotaSaveRequest? other)

other QuotaSaveRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(QuotaSaveRequest?, QuotaSaveRequest?)

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

left QuotaSaveRequest?

right QuotaSaveRequest?

bool

operator !=(QuotaSaveRequest?, QuotaSaveRequest?)

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

left QuotaSaveRequest?

right QuotaSaveRequest?

bool