.NET API
QuotaUsageQuery
Tracon.Abstractions.dllA filter for querying quota usage.
public sealed record QuotaUsageQuery : IEquatable<QuotaUsageQuery>- Inheritance
- object ← QuotaUsageQuery
- Implements
- IEquatable<QuotaUsageQuery>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”QuotaUsageQuery()
Section titled “ QuotaUsageQuery()”public QuotaUsageQuery()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Fetches only this agent’s counters. An empty string means tenant-wide.
public string? AgentName { get; init; }Property Value
Section titled “Property Value”Period
Section titled “ Period”Fetches only this interval’s counters.
public QuotaPeriod? Period { get; init; }Property Value
Section titled “Property Value”PeriodStarts
Section titled “ PeriodStarts”Fetches only the counters of the periods named here, each for the given first day (local time). null applies no period filter: every counter of every period is returned — the whole history.
public IReadOnlyDictionary<QuotaPeriod, DateOnly>? PeriodStarts { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<QuotaPeriod, DateOnly>?
Remarks
Section titled “Remarks”The caller computes the first days from the configured time zone, exactly as it does for IQuotaStore.AddUsageAsync; a store does not know time zones. A period that is not in the map returns no counters, so an empty map returns an empty list. The filter applies together with QuotaUsageQuery.AgentName and QuotaUsageQuery.Period.
The admission check reads usage before every run. Without this filter each read returned the tenant’s whole history, which only grows.
TenantId
Section titled “ TenantId”The tenant identifier.
public required string TenantId { 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(QuotaUsageQuery?)
Section titled “ Equals(QuotaUsageQuery?)”public bool Equals(QuotaUsageQuery? other)Parameters
Section titled “Parameters”other QuotaUsageQuery?
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 ==(QuotaUsageQuery?, QuotaUsageQuery?)
Section titled “ operator ==(QuotaUsageQuery?, QuotaUsageQuery?)”public static bool operator ==(QuotaUsageQuery? left, QuotaUsageQuery? right)Parameters
Section titled “Parameters”left QuotaUsageQuery?
right QuotaUsageQuery?
Returns
Section titled “Returns”operator !=(QuotaUsageQuery?, QuotaUsageQuery?)
Section titled “ operator !=(QuotaUsageQuery?, QuotaUsageQuery?)”public static bool operator !=(QuotaUsageQuery? left, QuotaUsageQuery? right)Parameters
Section titled “Parameters”left QuotaUsageQuery?
right QuotaUsageQuery?