Delen via


WebApplicationCustomRule Class

Definition

Defines contents of a web application rule.

public class WebApplicationCustomRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.FrontDoor.Models.WebApplicationCustomRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.FrontDoor.Models.WebApplicationCustomRule>
public class WebApplicationCustomRule
type WebApplicationCustomRule = class
    interface IJsonModel<WebApplicationCustomRule>
    interface IPersistableModel<WebApplicationCustomRule>
type WebApplicationCustomRule = class
Public Class WebApplicationCustomRule
Implements IJsonModel(Of WebApplicationCustomRule), IPersistableModel(Of WebApplicationCustomRule)
Public Class WebApplicationCustomRule
Inheritance
WebApplicationCustomRule
Implements

Constructors

WebApplicationCustomRule(Int32, WebApplicationRuleType, IEnumerable<WebApplicationRuleMatchCondition>, RuleMatchActionType)

Initializes a new instance of WebApplicationCustomRule.

Properties

Action

Describes what action to be applied when rule matches.

EnabledState

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

GroupBy

Describes the list of variables to group the rate limit requests.

MatchConditions

List of match conditions.

Name

Describes the name of the rule.

Priority

Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

RateLimitDurationInMinutes

Time window for resetting the rate limit count. Default is 1 minute.

RateLimitThreshold

Number of allowed requests per client within the time window.

RuleType

Describes type of rule.

Explicit Interface Implementations

IJsonModel<WebApplicationCustomRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<WebApplicationCustomRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WebApplicationCustomRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WebApplicationCustomRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<WebApplicationCustomRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to