RampUpRule Class

Routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or to gradually change routing % based on performance.

Inheritance
RampUpRule

Constructor

RampUpRule(*, action_host_name: Optional[str] = None, reroute_percentage: Optional[float] = None, change_step: Optional[float] = None, change_interval_in_minutes: Optional[int] = None, min_reroute_percentage: Optional[float] = None, max_reroute_percentage: Optional[float] = None, change_decision_callback_url: Optional[str] = None, name: Optional[str] = None, **kwargs)

Parameters

action_host_name
str
Required

Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.

reroute_percentage
float
Required

Percentage of the traffic which will be redirected to <code>ActionHostName</code>.

change_step
float
Required

In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches <code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>. Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.

change_interval_in_minutes
int
Required

Specifies interval in minutes to reevaluate ReroutePercentage.

min_reroute_percentage
float
Required

Specifies lower boundary above which ReroutePercentage will stay.

max_reroute_percentage
float
Required

Specifies upper boundary below which ReroutePercentage will stay.

change_decision_callback_url
str
Required

Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. https://www.siteextensions.net/packages/TiPCallback/.

name
str
Required

Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment.