Table of Contents

Class QuotaDefinition

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

Represents a quota definition.

public class QuotaDefinition
Inheritance
QuotaDefinition
Inherited Members
Extension Methods

Properties

Context

Gets or sets the context of the quota.

[JsonPropertyName("context")]
public required string Context { get; set; }

Property Value

string

Description

Gets or sets the description of the quota.

[JsonPropertyName("description")]
public required string Description { get; set; }

Property Value

string

DistributedEnforcement

Gets or sets a value indicating whether the quota is enforced in a distributed manner.

[JsonPropertyName("distributed_enforcement")]
public bool DistributedEnforcement { get; set; }

Property Value

bool

LockoutDurationSeconds

Gets or sets the duration in seconds for which the quota is locked out after it has been exceeded.

[JsonPropertyName("lockout_duration_seconds")]
public int LockoutDurationSeconds { get; set; }

Property Value

int

MetricLimit

Gets or sets the limit of the metric that is used to enforce the quota.

[JsonPropertyName("metric_limit")]
public int MetricLimit { get; set; }

Property Value

int

MetricPartition

Gets or sets the type of partitioning applied to the metric that is used to enforce the quota.

[JsonPropertyName("metric_partition")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuotaMetricPartitionType MetricPartition { get; set; }

Property Value

QuotaMetricPartitionType

MetricWindowSeconds

Gets or sets the window of time in seconds over which the metric is evaluated.

[JsonPropertyName("metric_window_seconds")]
public int MetricWindowSeconds { get; set; }

Property Value

int

Name

Gets or sets the name of the quota.

[JsonPropertyName("name")]
public required string Name { get; set; }

Property Value

string

Type

Gets or sets the type of the quota.

[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuotaType Type { get; set; }

Property Value

QuotaType