Share via


RateLimitRule Class

Definition

Defines a rate limiting rule that can be included in a waf policy Serialized Name: RateLimitRule

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 Serialized Name: CustomRule.action

(Inherited from CustomRule)
EnabledState

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Serialized Name: CustomRule.enabledState

(Inherited from CustomRule)
MatchConditions

List of match conditions. Serialized Name: CustomRule.matchConditions

(Inherited from CustomRule)
Name

Defines the name of the custom rule Serialized Name: CustomRule.name

(Inherited from CustomRule)
Priority

Defines in what order this rule be evaluated in the overall list of custom rules Serialized Name: CustomRule.priority

(Inherited from CustomRule)
RateLimitDurationInMinutes

Defines rate limit duration. Default is 1 minute. Serialized Name: RateLimitRule.rateLimitDurationInMinutes

RateLimitThreshold

Defines rate limit threshold. Serialized Name: RateLimitRule.rateLimitThreshold

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

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