RampUpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.RampUpRule

public final class RampUpRule

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

Constructor Summary

Constructor Description
RampUpRule()

Creates an instance of RampUpRule class.

Method Summary

Modifier and Type Method and Description
String actionHostname()

Get the actionHostname property: Hostname of a slot to which the traffic will be redirected if decided to.

String changeDecisionCallbackUrl()

Get the changeDecisionCallbackUrl property: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified.

Integer changeIntervalInMinutes()

Get the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.

Double changeStep()

Get the changeStep property: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage.

Double maxReroutePercentage()

Get the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.

Double minReroutePercentage()

Get the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.

String name()

Get the name property: Name of the routing rule.

Double reroutePercentage()

Get the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName.

void validate()

Validates the instance.

RampUpRule withActionHostname(String actionHostname)

Set the actionHostname property: Hostname of a slot to which the traffic will be redirected if decided to.

RampUpRule withChangeDecisionCallbackUrl(String changeDecisionCallbackUrl)

Set the changeDecisionCallbackUrl property: Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified.

RampUpRule withChangeIntervalInMinutes(Integer changeIntervalInMinutes)

Set the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.

RampUpRule withChangeStep(Double changeStep)

Set the changeStep property: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage.

RampUpRule withMaxReroutePercentage(Double maxReroutePercentage)

Set the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.

RampUpRule withMinReroutePercentage(Double minReroutePercentage)

Set the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.

RampUpRule withName(String name)

Set the name property: Name of the routing rule.

RampUpRule withReroutePercentage(Double reroutePercentage)

Set the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName.

Methods inherited from java.lang.Object

Constructor Details

RampUpRule

public RampUpRule()

Creates an instance of RampUpRule class.

Method Details

actionHostname

public String actionHostname()

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

Returns:

the actionHostname value.

changeDecisionCallbackUrl

public String changeDecisionCallbackUrl()

Get the changeDecisionCallbackUrl property: 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/.

Returns:

the changeDecisionCallbackUrl value.

changeIntervalInMinutes

public Integer changeIntervalInMinutes()

Get the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.

Returns:

the changeIntervalInMinutes value.

changeStep

public Double changeStep()

Get the changeStep property: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl.

Returns:

the changeStep value.

maxReroutePercentage

public Double maxReroutePercentage()

Get the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.

Returns:

the maxReroutePercentage value.

minReroutePercentage

public Double minReroutePercentage()

Get the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.

Returns:

the minReroutePercentage value.

name

public String name()

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

Returns:

the name value.

reroutePercentage

public Double reroutePercentage()

Get the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName.

Returns:

the reroutePercentage value.

validate

public void validate()

Validates the instance.

withActionHostname

public RampUpRule withActionHostname(String actionHostname)

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

Parameters:

actionHostname - the actionHostname value to set.

Returns:

the RampUpRule object itself.

withChangeDecisionCallbackUrl

public RampUpRule withChangeDecisionCallbackUrl(String changeDecisionCallbackUrl)

Set the changeDecisionCallbackUrl property: 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/.

Parameters:

changeDecisionCallbackUrl - the changeDecisionCallbackUrl value to set.

Returns:

the RampUpRule object itself.

withChangeIntervalInMinutes

public RampUpRule withChangeIntervalInMinutes(Integer changeIntervalInMinutes)

Set the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.

Parameters:

changeIntervalInMinutes - the changeIntervalInMinutes value to set.

Returns:

the RampUpRule object itself.

withChangeStep

public RampUpRule withChangeStep(Double changeStep)

Set the changeStep property: In auto ramp up scenario this is the step to add/remove from ReroutePercentage until it reaches \nMinReroutePercentage or MaxReroutePercentage. Site metrics are checked every N minutes specified in ChangeIntervalInMinutes.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in ChangeDecisionCallbackUrl.

Parameters:

changeStep - the changeStep value to set.

Returns:

the RampUpRule object itself.

withMaxReroutePercentage

public RampUpRule withMaxReroutePercentage(Double maxReroutePercentage)

Set the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.

Parameters:

maxReroutePercentage - the maxReroutePercentage value to set.

Returns:

the RampUpRule object itself.

withMinReroutePercentage

public RampUpRule withMinReroutePercentage(Double minReroutePercentage)

Set the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.

Parameters:

minReroutePercentage - the minReroutePercentage value to set.

Returns:

the RampUpRule object itself.

withName

public RampUpRule withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the RampUpRule object itself.

withReroutePercentage

public RampUpRule withReroutePercentage(Double reroutePercentage)

Set the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName.

Parameters:

reroutePercentage - the reroutePercentage value to set.

Returns:

the RampUpRule object itself.

Applies to