class Azure::CDN::Mgmt::V2020_09_01::Models::ResponseBasedOriginErrorDetectionParameters

The JSON object that contains the properties to determine origin health using real requests/responses.

Attributes

http_error_ranges[RW]

@return [Array<HttpErrorRangeParameters>] The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

response_based_detected_error_types[RW]

@return [ResponseBasedDetectedErrorTypes] Type of response errors for real user requests for which origin will be deemed unhealthy. Possible values include: 'None', 'TcpErrorsOnly', 'TcpAndHttpErrors'

response_based_failover_threshold_percentage[RW]

@return [Integer] The percentage of failed requests in the sample where failover should trigger.

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-09-01/generated/azure_mgmt_cdn/models/response_based_origin_error_detection_parameters.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResponseBasedOriginErrorDetectionParameters',
    type: {
      name: 'Composite',
      class_name: 'ResponseBasedOriginErrorDetectionParameters',
      model_properties: {
        response_based_detected_error_types: {
          client_side_validation: true,
          required: false,
          serialized_name: 'responseBasedDetectedErrorTypes',
          type: {
            name: 'Enum',
            module: 'ResponseBasedDetectedErrorTypes'
          }
        },
        response_based_failover_threshold_percentage: {
          client_side_validation: true,
          required: false,
          serialized_name: 'responseBasedFailoverThresholdPercentage',
          constraints: {
            InclusiveMaximum: 100,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        http_error_ranges: {
          client_side_validation: true,
          required: false,
          serialized_name: 'httpErrorRanges',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HttpErrorRangeParametersElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HttpErrorRangeParameters'
                }
            }
          }
        }
      }
    }
  }
end