Skip to content

QuotaUsageQuery

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A filter for querying quota usage.

public sealed record QuotaUsageQuery : IEquatable<QuotaUsageQuery>

objectQuotaUsageQuery

IEquatable<QuotaUsageQuery>

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

public QuotaUsageQuery()

Fetches only this agent’s counters. An empty string means tenant-wide.

public string? AgentName { get; init; }

string?

The moment the counters belong to (UTC). The current time is used if not given.

public DateTimeOffset? AsOf { get; init; }

DateTimeOffset?

Fetches only this interval’s counters.

public QuotaPeriod? Period { get; init; }

QuotaPeriod?

The tenant identifier.

public required string TenantId { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(QuotaUsageQuery? other)

other QuotaUsageQuery?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(QuotaUsageQuery?, QuotaUsageQuery?)

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

left QuotaUsageQuery?

right QuotaUsageQuery?

bool

operator !=(QuotaUsageQuery?, QuotaUsageQuery?)

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

left QuotaUsageQuery?

right QuotaUsageQuery?

bool