class Azure::Web::Mgmt::V2018_02_01::Models::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.

Attributes

action_host_name[RW]

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

change_decision_callback_url[RW]

@return [String] Custom decision algorithm can be provided in TiPCallback site extension which URL can be specified. See TiPCallback site extension for the scaffold and contracts. www.siteextensions.net/packages/TiPCallback/

change_interval_in_minutes[RW]

@return [Integer] Specifies interval in mimuntes to reevaluate ReroutePercentage.

change_step[RW]

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

max_reroute_percentage[RW]

@return [Float] Specifies upper boundary below which ReroutePercentage will stay.

min_reroute_percentage[RW]

@return [Float] Specifies lower boundary above which ReroutePercentage will stay.

name[RW]

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

reroute_percentage[RW]

@return [Float] Percentage of the traffic which will be redirected to ActionHostName.

Private Class Methods

mapper() click to toggle source

Mapper for RampUpRule class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-02-01/generated/azure_mgmt_web/models/ramp_up_rule.rb, line 62
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RampUpRule',
    type: {
      name: 'Composite',
      class_name: 'RampUpRule',
      model_properties: {
        action_host_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionHostName',
          type: {
            name: 'String'
          }
        },
        reroute_percentage: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reroutePercentage',
          type: {
            name: 'Double'
          }
        },
        change_step: {
          client_side_validation: true,
          required: false,
          serialized_name: 'changeStep',
          type: {
            name: 'Double'
          }
        },
        change_interval_in_minutes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'changeIntervalInMinutes',
          type: {
            name: 'Number'
          }
        },
        min_reroute_percentage: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minReroutePercentage',
          type: {
            name: 'Double'
          }
        },
        max_reroute_percentage: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxReroutePercentage',
          type: {
            name: 'Double'
          }
        },
        change_decision_callback_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'changeDecisionCallbackUrl',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end