RulesEngineRule interface

Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.

Properties

action

Actions to perform on the request and response if all of the match conditions are met.

matchConditions

A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.

matchProcessingBehavior

If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.

name

A name to refer to this specific rule.

priority

A priority assigned to this rule.

Property Details

action

Actions to perform on the request and response if all of the match conditions are met.

action: RulesEngineAction

Property Value

matchConditions

A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.

matchConditions?: RulesEngineMatchCondition[]

Property Value

matchProcessingBehavior

If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.

matchProcessingBehavior?: string

Property Value

string

name

A name to refer to this specific rule.

name: string

Property Value

string

priority

A priority assigned to this rule.

priority: number

Property Value

number