Table of Contents

Class QuotaMetricPartitionState

Namespace
FoundationaLLM.Common.Models.Quota
Assembly
FoundationaLLM.Common.dll

Represents the state of a quota metric partition.

public class QuotaMetricPartitionState
Inheritance
QuotaMetricPartitionState
Inherited Members
Extension Methods

Properties

LocalMetricCount

Gets or sets the number of units of the quota metric that have a local origin (the service instance hosting the quota metric sequence).

[JsonIgnore]
public int LocalMetricCount { get; set; }

Property Value

int

QuotaContext

Gets or sets the quota context that contains the partition.

[JsonPropertyName("quota_context")]
public required string QuotaContext { get; set; }

Property Value

string

QuotaExceeded

Gets or sets a value indicating whether the quota has been exceeded.

[JsonPropertyName("quota_exceeded")]
public bool QuotaExceeded { get; set; }

Property Value

bool

QuotaMetricPartitionId

Gets or sets the identifier of the quota metric partition used for evaluation.

[JsonIgnore]
public required string QuotaMetricPartitionId { get; set; }

Property Value

string

QuotaName

Gets or sets the name of the quota that contains the partition.

[JsonPropertyName("quota_name")]
public required string QuotaName { get; set; }

Property Value

string

RemoteMetricCount

Gets or sets the number of units of the quota metric that have a remote origin (other service instances than the one hosting the quota metric sequence).

[JsonIgnore]
public int RemoteMetricCount { get; set; }

Property Value

int

TimeUntilRetrySeconds

Gets or sets the number of seconds until the request can be retried.

[JsonPropertyName("time_until_retry_seconds")]
public int TimeUntilRetrySeconds { get; set; }

Property Value

int

TotalMetricCount

Gets or sets the total number of units of the quota metric, both local and remote.

[JsonIgnore]
public int TotalMetricCount { get; set; }

Property Value

int