ArmCdnModelFactory.ResponseBasedOriginErrorDetectionSettings Method

Definition

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

public static Azure.ResourceManager.Cdn.Models.ResponseBasedOriginErrorDetectionSettings ResponseBasedOriginErrorDetectionSettings(Azure.ResourceManager.Cdn.Models.ResponseBasedDetectedErrorType? responseBasedDetectedErrorType = default, int? responseBasedFailoverThresholdPercentage = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.HttpErrorRange> httpErrorRanges = default);
static member ResponseBasedOriginErrorDetectionSettings : Nullable<Azure.ResourceManager.Cdn.Models.ResponseBasedDetectedErrorType> * Nullable<int> * seq<Azure.ResourceManager.Cdn.Models.HttpErrorRange> -> Azure.ResourceManager.Cdn.Models.ResponseBasedOriginErrorDetectionSettings
Public Shared Function ResponseBasedOriginErrorDetectionSettings (Optional responseBasedDetectedErrorType As Nullable(Of ResponseBasedDetectedErrorType) = Nothing, Optional responseBasedFailoverThresholdPercentage As Nullable(Of Integer) = Nothing, Optional httpErrorRanges As IEnumerable(Of HttpErrorRange) = Nothing) As ResponseBasedOriginErrorDetectionSettings

Parameters

responseBasedDetectedErrorType
Nullable<ResponseBasedDetectedErrorType>

Type of response errors for real user requests for which origin will be deemed unhealthy.

responseBasedFailoverThresholdPercentage
Nullable<Int32>

The percentage of failed requests in the sample where failover should trigger.

httpErrorRanges
IEnumerable<HttpErrorRange>

The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.

Returns

A new ResponseBasedOriginErrorDetectionSettings instance for mocking.

Applies to