Share via


RateLimitRule Class

Definition

Defines a rate limiting rule that can be included in a waf policy.

public class RateLimitRule : Azure.ResourceManager.Cdn.Models.CustomRule, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Cdn.Models.RateLimitRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Cdn.Models.RateLimitRule>
public class RateLimitRule : Azure.ResourceManager.Cdn.Models.CustomRule
type RateLimitRule = class
    inherit CustomRule
    interface IJsonModel<RateLimitRule>
    interface IPersistableModel<RateLimitRule>
type RateLimitRule = class
    inherit CustomRule
Public Class RateLimitRule
Inherits CustomRule
Implements IJsonModel(Of RateLimitRule), IPersistableModel(Of RateLimitRule)
Public Class RateLimitRule
Inherits CustomRule
Inheritance
RateLimitRule
Implements

Constructors

RateLimitRule(String, Int32, IEnumerable<CustomRuleMatchCondition>, OverrideActionType, Int32, Int32)

Initializes a new instance of RateLimitRule.

Properties

Action

Describes what action to be applied when rule matches.

(Inherited from CustomRule)
EnabledState

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

(Inherited from CustomRule)
MatchConditions

List of match conditions.

(Inherited from CustomRule)
Name

Defines the name of the custom rule.

(Inherited from CustomRule)
Priority

Defines in what order this rule be evaluated in the overall list of custom rules.

(Inherited from CustomRule)
RateLimitDurationInMinutes

Defines rate limit duration. Default is 1 minute.

RateLimitThreshold

Defines rate limit threshold.

Explicit Interface Implementations

IJsonModel<CustomRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from CustomRule)
IJsonModel<CustomRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from CustomRule)
IJsonModel<RateLimitRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RateLimitRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CustomRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from CustomRule)
IPersistableModel<CustomRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from CustomRule)
IPersistableModel<CustomRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from CustomRule)
IPersistableModel<RateLimitRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RateLimitRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RateLimitRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to