QuotaUsageRecord
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA scope’s consumption in the current period.
public sealed record QuotaUsageRecord : IEquatable<QuotaUsageRecord>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”QuotaUsageRecord()
Section titled “ QuotaUsageRecord()”public QuotaUsageRecord()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”The agent name. An empty string ("") means the tenant-wide counter.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”The total amount spent in the period. Runs with undefined pricing are not included in this total (not even added as zero).
public decimal Cost { get; init; }Property Value
Section titled “Property Value”Period
Section titled “ Period”The counter’s interval.
public required QuotaPeriod Period { get; init; }Property Value
Section titled “Property Value”PeriodStart
Section titled “ PeriodStart”The first day of the period (in local time).
public required DateOnly PeriodStart { get; init; }Property Value
Section titled “Property Value”The number of runs completed in the period.
public long Runs { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant identifier.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”Tokens
Section titled “ Tokens”The total tokens spent in the period.
public long Tokens { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”The last-updated time (UTC).
public required DateTimeOffset UpdatedAt { 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(QuotaUsageRecord?)
Section titled “ Equals(QuotaUsageRecord?)”public bool Equals(QuotaUsageRecord? other)Parameters
Section titled “Parameters”other QuotaUsageRecord?
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 ==(QuotaUsageRecord?, QuotaUsageRecord?)
Section titled “ operator ==(QuotaUsageRecord?, QuotaUsageRecord?)”public static bool operator ==(QuotaUsageRecord? left, QuotaUsageRecord? right)Parameters
Section titled “Parameters”left QuotaUsageRecord?
right QuotaUsageRecord?
Returns
Section titled “Returns”operator !=(QuotaUsageRecord?, QuotaUsageRecord?)
Section titled “ operator !=(QuotaUsageRecord?, QuotaUsageRecord?)”public static bool operator !=(QuotaUsageRecord? left, QuotaUsageRecord? right)Parameters
Section titled “Parameters”left QuotaUsageRecord?
right QuotaUsageRecord?