Skip to content

Class RateLimitingOverrideSettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes one named rate-limiting override configured for a subset of transports or behaviors.

public sealed class RateLimitingOverrideSettings

objectRateLimitingOverrideSettings

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

RateLimitingOverrideSettings(string, IReadOnlyList<string>?, IReadOnlyList<string>?, bool?, string?, int?, int?, int?, int?)

Section titled “ RateLimitingOverrideSettings(string, IReadOnlyList<string>?, IReadOnlyList<string>?, bool?, string?, int?, int?, int?, int?)”

Initializes a new instance of the class.

public RateLimitingOverrideSettings(string id, IReadOnlyList<string>? behaviorIds = null, IReadOnlyList<string>? transportIds = null, bool? enabled = null, string? algorithm = null, int? permitLimit = null, int? queueLimit = null, int? windowSeconds = null, int? segmentsPerWindow = null)

id string

The stable override identifier.

behaviorIds IReadOnlyList<string>?

The targeted behavior identifiers.

transportIds IReadOnlyList<string>?

The targeted transport identifiers.

enabled bool?

Whether the override explicitly enables or disables rate limiting.

algorithm string?

The requested rate-limiting algorithm, such as FixedWindow or TokenBucket.

permitLimit int?

The maximum permits available per limiter window or bucket.

queueLimit int?

The maximum queued requests allowed before rejection.

windowSeconds int?

The limiter window duration in seconds when the selected algorithm uses windows.

segmentsPerWindow int?

The number of segments per window when sliding windows are used.

Gets the requested rate-limiting algorithm, such as FixedWindow or TokenBucket.

public string? Algorithm { get; }

string?

Gets the targeted behavior identifiers.

public IReadOnlyList<string> BehaviorIds { get; }

IReadOnlyList<string>

Gets a value indicating whether rate limiting was explicitly enabled or disabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any override settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the stable override identifier.

public string Id { get; }

string

Gets the maximum permits available per limiter window or bucket.

public int? PermitLimit { get; }

int?

Gets the maximum queued requests allowed before rejection.

public int? QueueLimit { get; }

int?

Gets the number of segments per window when sliding windows are used.

public int? SegmentsPerWindow { get; }

int?

Gets the targeted transport identifiers.

public IReadOnlyList<string> TransportIds { get; }

IReadOnlyList<string>

Gets the limiter window duration in seconds when the selected algorithm uses windows.

public int? WindowSeconds { get; }

int?