public static final class ListCircuitBreakerRulesResponseBody.Result.Builder extends Object
public ListCircuitBreakerRulesResponseBody.Result.Builder appId(String appId)
The ID of the application.
example:hkhon1po62@c3df23522bXXXXX
public ListCircuitBreakerRulesResponseBody.Result.Builder appName(String appName)
The name of the application.
example:spring-cloud-a
public ListCircuitBreakerRulesResponseBody.Result.Builder enable(Boolean enable)
Indicates whether the rule was enabled.
example:true
public ListCircuitBreakerRulesResponseBody.Result.Builder fallbackObject(String fallbackObject)
The behavior that was bound to the rule.
example:"{"appName":"spring-cloud-a","fallbackBehavior":{"webFallbackMode":0,"webRespContentType":0,"webRespMessage":"Blocked","webRespStatusCode":429},"id":977,"name":"Fallback","namespace":"default","resourceClassification":1}"
public ListCircuitBreakerRulesResponseBody.Result.Builder halfOpenBaseAmountPerStep(Integer halfOpenBaseAmountPerStep)
The minimum number of requests that can be passed in each step after circuit breaking recovers.
example:5
public ListCircuitBreakerRulesResponseBody.Result.Builder halfOpenRecoveryStepNum(Integer halfOpenRecoveryStepNum)
The number of circuit breaking recovery steps.
example:1
public ListCircuitBreakerRulesResponseBody.Result.Builder maxAllowedRtMs(Integer maxAllowedRtMs)
The maximum RT. Unit: milliseconds. If the RT of a request is greater than the value of this parameter, a slow call is counted. If you set Strategy to 0, you must specify this parameter.
example:200
public ListCircuitBreakerRulesResponseBody.Result.Builder minRequestAmount(Integer minRequestAmount)
The minimum number of requests to trigger circuit breaking. If the number of requests in the current time window is less than the value of this parameter, circuit breaking is not triggered even if the circuit breaking rule is met.
example:10
public ListCircuitBreakerRulesResponseBody.Result.Builder namespace(String namespace)
The microservice namespace to which the application belongs.
example:default
public ListCircuitBreakerRulesResponseBody.Result.Builder regionId(String regionId)
The region in which the instance resides.
example:cn-hangzhou
public ListCircuitBreakerRulesResponseBody.Result.Builder resource(String resource)
The name of the interface to which the rule is applicable. The interface name must be the same as the name on the interface details page in the console.
example:/a
public ListCircuitBreakerRulesResponseBody.Result.Builder resourceType(Integer resourceType)
public ListCircuitBreakerRulesResponseBody.Result.Builder retryTimeoutMs(Integer retryTimeoutMs)
The period in which circuit breaking is implemented. Unit: milliseconds. If circuit breaking is implemented on the requests for the route, the calls to all the requests for the route fail in the configured circuit breaking period.
example:10000
public ListCircuitBreakerRulesResponseBody.Result.Builder ruleId(Long ruleId)
The ID of the rule.
example:1
public ListCircuitBreakerRulesResponseBody.Result.Builder statIntervalMs(Integer statIntervalMs)
The length of the time window. Unit: milliseconds. The valid range is from 1 second to 120 minutes.
example:20000
public ListCircuitBreakerRulesResponseBody.Result.Builder strategy(Integer strategy)
The threshold type.
Valid values:
0
:
slow call proportion
1
:
abnormal proportion
0
public ListCircuitBreakerRulesResponseBody.Result.Builder threshold(Float threshold)
A percentage threshold for triggering circuit breaking. Valid values: 0-1. These values represent 0% to 100%.
example:0.8
public ListCircuitBreakerRulesResponseBody.Result build()
Copyright © 2026. All rights reserved.