ResponseBasedOriginErrorDetectionParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. ResponseBasedOriginErrorDetectionParameters
- com.
Implements
public final class ResponseBasedOriginErrorDetectionParameters
implements JsonSerializable<ResponseBasedOriginErrorDetectionParameters>
The JSON object that contains the properties to determine origin health using real requests/responses.
Constructor Summary
Constructor | Description |
---|---|
ResponseBasedOriginErrorDetectionParameters() |
Creates an instance of Response |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Response |
fromJson(JsonReader jsonReader)
Reads an instance of Response |
List<Http |
httpErrorRanges()
Get the http |
Response |
responseBasedDetectedErrorTypes()
Get the response |
Integer |
responseBasedFailoverThresholdPercentage()
Get the response |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Response |
withHttpErrorRanges(List<HttpErrorRangeParameters> httpErrorRanges)
Set the http |
Response |
withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
Set the response |
Response |
withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
Set the response |
Methods inherited from java.lang.Object
Constructor Details
ResponseBasedOriginErrorDetectionParameters
public ResponseBasedOriginErrorDetectionParameters()
Creates an instance of ResponseBasedOriginErrorDetectionParameters class.
Method Details
fromJson
public static ResponseBasedOriginErrorDetectionParameters fromJson(JsonReader jsonReader)
Reads an instance of ResponseBasedOriginErrorDetectionParameters from the JsonReader.
Parameters:
Returns:
Throws:
httpErrorRanges
public List
Get the httpErrorRanges property: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.
Returns:
responseBasedDetectedErrorTypes
public ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes()
Get the responseBasedDetectedErrorTypes property: Type of response errors for real user requests for which origin will be deemed unhealthy.
Returns:
responseBasedFailoverThresholdPercentage
public Integer responseBasedFailoverThresholdPercentage()
Get the responseBasedFailoverThresholdPercentage property: The percentage of failed requests in the sample where failover should trigger.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHttpErrorRanges
public ResponseBasedOriginErrorDetectionParameters withHttpErrorRanges(List
Set the httpErrorRanges property: The list of Http status code ranges that are considered as server errors for origin and it is marked as unhealthy.
Parameters:
Returns:
withResponseBasedDetectedErrorTypes
public ResponseBasedOriginErrorDetectionParameters withResponseBasedDetectedErrorTypes(ResponseBasedDetectedErrorTypes responseBasedDetectedErrorTypes)
Set the responseBasedDetectedErrorTypes property: Type of response errors for real user requests for which origin will be deemed unhealthy.
Parameters:
Returns:
withResponseBasedFailoverThresholdPercentage
public ResponseBasedOriginErrorDetectionParameters withResponseBasedFailoverThresholdPercentage(Integer responseBasedFailoverThresholdPercentage)
Set the responseBasedFailoverThresholdPercentage property: The percentage of failed requests in the sample where failover should trigger.
Parameters:
Returns: