QuotaSaveRequest
Namespace AgentPrism · Assembly
AgentPrism.AspNetCore.dllRequest body for saving a quota rule.
public sealed record QuotaSaveRequest : IEquatable<QuotaSaveRequest>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()
Constructors
Section titled “Constructors”QuotaSaveRequest()
Section titled “ QuotaSaveRequest()”public QuotaSaveRequest()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”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; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets whether the rule is enabled.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”MaxCost
Section titled “ MaxCost”Gets the maximum monetary amount per period.
public decimal? MaxCost { get; init; }Property Value
Section titled “Property Value”MaxRuns
Section titled “ MaxRuns”Gets the maximum number of runs per period.
public long? MaxRuns { get; init; }Property Value
Section titled “Property Value”long?
MaxTokens
Section titled “ MaxTokens”Gets the maximum number of tokens per period.
public long? MaxTokens { get; init; }Property Value
Section titled “Property Value”long?
Period
Section titled “ Period”Gets the counter’s reset interval.
public QuotaPeriod Period { 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(QuotaSaveRequest?)
Section titled “ Equals(QuotaSaveRequest?)”public bool Equals(QuotaSaveRequest? other)Parameters
Section titled “Parameters”other QuotaSaveRequest?
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 ==(QuotaSaveRequest?, QuotaSaveRequest?)
Section titled “ operator ==(QuotaSaveRequest?, QuotaSaveRequest?)”public static bool operator ==(QuotaSaveRequest? left, QuotaSaveRequest? right)Parameters
Section titled “Parameters”left QuotaSaveRequest?
right QuotaSaveRequest?
Returns
Section titled “Returns”operator !=(QuotaSaveRequest?, QuotaSaveRequest?)
Section titled “ operator !=(QuotaSaveRequest?, QuotaSaveRequest?)”public static bool operator !=(QuotaSaveRequest? left, QuotaSaveRequest? right)Parameters
Section titled “Parameters”left QuotaSaveRequest?
right QuotaSaveRequest?