GuideReference
TrainingSupportCommunity
Reference

ad_​scaler_​circuit_​breaker


This behavior works with manifest​_rerouting to provide the scale and reliability of Akamai network while simultaneously allowing third party partners to modify the requested media content with value-added features. The ad​Scaler​Circuit​Breaker behavior specifies the fallback action in case the technology partner encounters errors and can't modify the requested media object.

OptionTypeDescriptionRequires
response_​delay_​basedboolean

Triggers a fallback action based on the delayed response from the technology partner's server.

{"displayType":"boolean","tag":"input","type":"checkbox"}
response_​delay_​thresholdenum

Specifies the maximum response delay that, if exceeded, triggers the fallback action.

response_​delay_​based is true
{"displayType":"enum","options":["500ms"],"tag":"select"}
{"if":{"attribute":"responseDelayBased","op":"eq","value":true}}
Supported values:
500ms
response_​code_​basedboolean

Triggers a fallback action based on the response code from the technology partner's server.

{"displayType":"boolean","tag":"input","type":"checkbox"}
response_​codesstring

Specifies the codes in the partner's response that trigger the fallback action, either 408, 500, 502, 504, SAME_​AS_​RECEIEVED, or SPECIFY_​YOUR_​OWN for a custom code.

response_​code_​based is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"responseCodeBased","op":"eq","value":true}}
fallback_​action_​response_​code_​basedenum

Specifies the fallback action.

response_​delay_​based is true
OR response_​code_​based is true
{"displayType":"enum","options":["RETURN_AKAMAI_COPY","RETURN_ERROR"],"tag":"select"}
{"if":{"op":"or","params":[{"attribute":"responseDelayBased","op":"eq","value":true},{"attribute":"responseCodeBased","op":"eq","value":true}]}}
RETURN_​AKAMAI_​COPY

Return an unmodified Akamai copy of the manifest file to the requesting client.

RETURN_​ERROR

Return an error as the server response.

return_​error_​response_​code_​basedenum

Specifies the error to include in the response to the client.

fallback_​action_​response_​code_​based is RETURN_​ERROR
{"displayType":"enum","options":["SAME_AS_RECEIVED","408","500","502","504","SPECIFY_YOUR_OWN"],"tag":"select"}
{"if":{"attribute":"fallbackActionResponseCodeBased","op":"eq","value":"RETURN_ERROR"}}
SAME_​AS_​RECEIVED

Return the same error received from the partner platform.

408

Return a 408 error.

500

Return a 500 error.

502

Return a 502 error.

504

Return a 504 error.

SPECIFY_​YOUR_​OWN

Customize the error.

specify_​your_​own_​response_​code_​basedstring

Defines a custom error response.

return_​error_​response_​code_​based is SPECIFY_​YOUR_​OWN
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"returnErrorResponseCodeBased","op":"eq","value":"SPECIFY_YOUR_OWN"}}