RulesEngineRuleResponse

data class RulesEngineRuleResponse(val action: RulesEngineActionResponse, val matchConditions: List<RulesEngineMatchConditionResponse>? = null, val matchProcessingBehavior: String? = null, val name: String, val priority: Int)

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.

Constructors

Link copied to clipboard
constructor(action: RulesEngineActionResponse, matchConditions: List<RulesEngineMatchConditionResponse>? = null, matchProcessingBehavior: String? = null, name: String, priority: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

A name to refer to this specific rule.

Link copied to clipboard

A priority assigned to this rule.