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
Description
Gets or sets the description of the quota.
[JsonPropertyName("description")]
public required string Description { get; set; }
Property Value
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
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
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
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
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
Name
Gets or sets the name of the quota.
[JsonPropertyName("name")]
public required string Name { get; set; }
Property Value
Type
Gets or sets the type of the quota.
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public QuotaType Type { get; set; }