RampUpRule Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. RampUpRule
- com.
Implements
public final class RampUpRule
implements JsonSerializable<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 Ramp |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
actionHostname()
Get the action |
String |
changeDecisionCallbackUrl()
Get the change |
Integer |
changeIntervalInMinutes()
Get the change |
Double |
changeStep()
Get the change |
static
Ramp |
fromJson(JsonReader jsonReader)
Reads an instance of Ramp |
Double |
maxReroutePercentage()
Get the max |
Double |
minReroutePercentage()
Get the min |
String |
name()
Get the name property: Name of the routing rule. |
Double |
reroutePercentage()
Get the reroute |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ramp |
withActionHostname(String actionHostname)
Set the action |
Ramp |
withChangeDecisionCallbackUrl(String changeDecisionCallbackUrl)
Set the change |
Ramp |
withChangeIntervalInMinutes(Integer changeIntervalInMinutes)
Set the change |
Ramp |
withChangeStep(Double changeStep)
Set the change |
Ramp |
withMaxReroutePercentage(Double maxReroutePercentage)
Set the max |
Ramp |
withMinReroutePercentage(Double minReroutePercentage)
Set the min |
Ramp |
withName(String name)
Set the name property: Name of the routing rule. |
Ramp |
withReroutePercentage(Double reroutePercentage)
Set the reroute |
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:
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:
changeIntervalInMinutes
public Integer changeIntervalInMinutes()
Get the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.
Returns:
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:
fromJson
public static RampUpRule fromJson(JsonReader jsonReader)
Reads an instance of RampUpRule from the JsonReader.
Parameters:
Returns:
Throws:
maxReroutePercentage
public Double maxReroutePercentage()
Get the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.
Returns:
minReroutePercentage
public Double minReroutePercentage()
Get the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.
Returns:
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:
reroutePercentage
public Double reroutePercentage()
Get the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName
.
Returns:
toJson
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:
Returns:
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:
Returns:
withChangeIntervalInMinutes
public RampUpRule withChangeIntervalInMinutes(Integer changeIntervalInMinutes)
Set the changeIntervalInMinutes property: Specifies interval in minutes to reevaluate ReroutePercentage.
Parameters:
Returns:
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:
Returns:
withMaxReroutePercentage
public RampUpRule withMaxReroutePercentage(Double maxReroutePercentage)
Set the maxReroutePercentage property: Specifies upper boundary below which ReroutePercentage will stay.
Parameters:
Returns:
withMinReroutePercentage
public RampUpRule withMinReroutePercentage(Double minReroutePercentage)
Set the minReroutePercentage property: Specifies lower boundary above which ReroutePercentage will stay.
Parameters:
Returns:
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:
Returns:
withReroutePercentage
public RampUpRule withReroutePercentage(Double reroutePercentage)
Set the reroutePercentage property: Percentage of the traffic which will be redirected to ActionHostName
.
Parameters:
Returns:
Applies to
Azure SDK for Java