Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice; import com.fasterxml.jackson.annotation.JsonProperty;
Routing rules for ramp up testing. This rule allows to redirect static traffic % to a slot or to gradually change routing % based on performance.
/** * Routing rules for ramp up testing. This rule allows to redirect static * traffic % to a slot or to gradually change routing % based on performance. */
public class RampUpRule {
Hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
/** * Hostname of a slot to which the traffic will be redirected if decided * to. E.g. myapp-stage.azurewebsites.net. */
@JsonProperty(value = "actionHostName") private String actionHostName;
Percentage of the traffic which will be redirected to <code>ActionHostName</code>.
/** * Percentage of the traffic which will be redirected to * &lt;code&gt;ActionHostName&lt;/code&gt;. */
@JsonProperty(value = "reroutePercentage") private Double reroutePercentage;
In auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.
/** * In auto ramp up scenario this is the step to add/remove from * &lt;code&gt;ReroutePercentage&lt;/code&gt; until it reaches * \n&lt;code&gt;MinReroutePercentage&lt;/code&gt; or * &lt;code&gt;MaxReroutePercentage&lt;/code&gt;. Site metrics are checked * every N minutes specified in * &lt;code&gt;ChangeIntervalInMinutes&lt;/code&gt;.\nCustom decision * algorithm * can be provided in TiPCallback site extension which URL can be specified * in &lt;code&gt;ChangeDecisionCallbackUrl&lt;/code&gt;. */
@JsonProperty(value = "changeStep") private Double changeStep;
Specifies interval in minutes to reevaluate ReroutePercentage.
/** * Specifies interval in minutes to reevaluate ReroutePercentage. */
@JsonProperty(value = "changeIntervalInMinutes") private Integer changeIntervalInMinutes;
Specifies lower boundary above which ReroutePercentage will stay.
/** * Specifies lower boundary above which ReroutePercentage will stay. */
@JsonProperty(value = "minReroutePercentage") private Double minReroutePercentage;
Specifies upper boundary below which ReroutePercentage will stay.
/** * Specifies upper boundary below which ReroutePercentage will stay. */
@JsonProperty(value = "maxReroutePercentage") private Double maxReroutePercentage;
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/.
/** * 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/. */
@JsonProperty(value = "changeDecisionCallbackUrl") private String changeDecisionCallbackUrl;
Name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment.
/** * Name of the routing rule. The recommended name would be to point to the * slot which will receive the traffic in the experiment. */
@JsonProperty(value = "name") private String name;
Get hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
Returns:the actionHostName value
/** * Get hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. * * @return the actionHostName value */
public String actionHostName() { return this.actionHostName; }
Set hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net.
Params:
  • actionHostName – the actionHostName value to set
Returns:the RampUpRule object itself.
/** * Set hostname of a slot to which the traffic will be redirected if decided to. E.g. myapp-stage.azurewebsites.net. * * @param actionHostName the actionHostName value to set * @return the RampUpRule object itself. */
public RampUpRule withActionHostName(String actionHostName) { this.actionHostName = actionHostName; return this; }
Get percentage of the traffic which will be redirected to <code>ActionHostName</code>.
Returns:the reroutePercentage value
/** * Get percentage of the traffic which will be redirected to &lt;code&gt;ActionHostName&lt;/code&gt;. * * @return the reroutePercentage value */
public Double reroutePercentage() { return this.reroutePercentage; }
Set percentage of the traffic which will be redirected to <code>ActionHostName</code>.
Params:
  • reroutePercentage – the reroutePercentage value to set
Returns:the RampUpRule object itself.
/** * Set percentage of the traffic which will be redirected to &lt;code&gt;ActionHostName&lt;/code&gt;. * * @param reroutePercentage the reroutePercentage value to set * @return the RampUpRule object itself. */
public RampUpRule withReroutePercentage(Double reroutePercentage) { this.reroutePercentage = reroutePercentage; return this; }
Get in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.
Returns:the changeStep value
/** * Get in auto ramp up scenario this is the step to add/remove from &lt;code&gt;ReroutePercentage&lt;/code&gt; until it reaches \n&lt;code&gt;MinReroutePercentage&lt;/code&gt; or &lt;code&gt;MaxReroutePercentage&lt;/code&gt;. Site metrics are checked every N minutes specified in &lt;code&gt;ChangeIntervalInMinutes&lt;/code&gt;.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in &lt;code&gt;ChangeDecisionCallbackUrl&lt;/code&gt;. * * @return the changeStep value */
public Double changeStep() { return this.changeStep; }
Set in auto ramp up scenario this is the step to add/remove from <code>ReroutePercentage</code> until it reaches \n<code>MinReroutePercentage</code> or <code>MaxReroutePercentage</code>. Site metrics are checked every N minutes specified in <code>ChangeIntervalInMinutes</code>.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in <code>ChangeDecisionCallbackUrl</code>.
Params:
  • changeStep – the changeStep value to set
Returns:the RampUpRule object itself.
/** * Set in auto ramp up scenario this is the step to add/remove from &lt;code&gt;ReroutePercentage&lt;/code&gt; until it reaches \n&lt;code&gt;MinReroutePercentage&lt;/code&gt; or &lt;code&gt;MaxReroutePercentage&lt;/code&gt;. Site metrics are checked every N minutes specified in &lt;code&gt;ChangeIntervalInMinutes&lt;/code&gt;.\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in &lt;code&gt;ChangeDecisionCallbackUrl&lt;/code&gt;. * * @param changeStep the changeStep value to set * @return the RampUpRule object itself. */
public RampUpRule withChangeStep(Double changeStep) { this.changeStep = changeStep; return this; }
Get specifies interval in minutes to reevaluate ReroutePercentage.
Returns:the changeIntervalInMinutes value
/** * Get specifies interval in minutes to reevaluate ReroutePercentage. * * @return the changeIntervalInMinutes value */
public Integer changeIntervalInMinutes() { return this.changeIntervalInMinutes; }
Set specifies interval in minutes to reevaluate ReroutePercentage.
Params:
  • changeIntervalInMinutes – the changeIntervalInMinutes value to set
Returns:the RampUpRule object itself.
/** * Set specifies interval in minutes to reevaluate ReroutePercentage. * * @param changeIntervalInMinutes the changeIntervalInMinutes value to set * @return the RampUpRule object itself. */
public RampUpRule withChangeIntervalInMinutes(Integer changeIntervalInMinutes) { this.changeIntervalInMinutes = changeIntervalInMinutes; return this; }
Get specifies lower boundary above which ReroutePercentage will stay.
Returns:the minReroutePercentage value
/** * Get specifies lower boundary above which ReroutePercentage will stay. * * @return the minReroutePercentage value */
public Double minReroutePercentage() { return this.minReroutePercentage; }
Set specifies lower boundary above which ReroutePercentage will stay.
Params:
  • minReroutePercentage – the minReroutePercentage value to set
Returns:the RampUpRule object itself.
/** * Set specifies lower boundary above which ReroutePercentage will stay. * * @param minReroutePercentage the minReroutePercentage value to set * @return the RampUpRule object itself. */
public RampUpRule withMinReroutePercentage(Double minReroutePercentage) { this.minReroutePercentage = minReroutePercentage; return this; }
Get specifies upper boundary below which ReroutePercentage will stay.
Returns:the maxReroutePercentage value
/** * Get specifies upper boundary below which ReroutePercentage will stay. * * @return the maxReroutePercentage value */
public Double maxReroutePercentage() { return this.maxReroutePercentage; }
Set specifies upper boundary below which ReroutePercentage will stay.
Params:
  • maxReroutePercentage – the maxReroutePercentage value to set
Returns:the RampUpRule object itself.
/** * Set specifies upper boundary below which ReroutePercentage will stay. * * @param maxReroutePercentage the maxReroutePercentage value to set * @return the RampUpRule object itself. */
public RampUpRule withMaxReroutePercentage(Double maxReroutePercentage) { this.maxReroutePercentage = maxReroutePercentage; return this; }
Get 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
/** * Get 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/. * * @return the changeDecisionCallbackUrl value */
public String changeDecisionCallbackUrl() { return this.changeDecisionCallbackUrl; }
Set 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/.
Params:
  • changeDecisionCallbackUrl – the changeDecisionCallbackUrl value to set
Returns:the RampUpRule object itself.
/** * Set 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/. * * @param changeDecisionCallbackUrl the changeDecisionCallbackUrl value to set * @return the RampUpRule object itself. */
public RampUpRule withChangeDecisionCallbackUrl(String changeDecisionCallbackUrl) { this.changeDecisionCallbackUrl = changeDecisionCallbackUrl; return this; }
Get 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
/** * Get name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. * * @return the name value */
public String name() { return this.name; }
Set name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment.
Params:
  • name – the name value to set
Returns:the RampUpRule object itself.
/** * Set name of the routing rule. The recommended name would be to point to the slot which will receive the traffic in the experiment. * * @param name the name value to set * @return the RampUpRule object itself. */
public RampUpRule withName(String name) { this.name = name; return this; } }