public static final class CreateCircuitBreakerRuleResponseBody.Data.Builder extends Object
public CreateCircuitBreakerRuleResponseBody.Data.Builder appId(String appId)
The ID of the application.
example:hkhon1po62@c3df23522bXXXXX
public CreateCircuitBreakerRuleResponseBody.Data.Builder appName(String appName)
The name of the application.
example:spring-cloud-a
public CreateCircuitBreakerRuleResponseBody.Data.Builder enable(Boolean enable)
Indicates whether the rule is enabled.
example:true
public CreateCircuitBreakerRuleResponseBody.Data.Builder halfOpenBaseAmountPerStep(Integer halfOpenBaseAmountPerStep)
The minimum number of requests that can be passed in each step after circuit breaking recovers.
example:5
public CreateCircuitBreakerRuleResponseBody.Data.Builder halfOpenRecoveryStepNum(Integer halfOpenRecoveryStepNum)
The number of circuit breaking recovery steps.
example:1
public CreateCircuitBreakerRuleResponseBody.Data.Builder id(Long id)
The ID of the rule.
example:1
public CreateCircuitBreakerRuleResponseBody.Data.Builder maxAllowedRtMs(Integer maxAllowedRtMs)
The maximum response time (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 CreateCircuitBreakerRuleResponseBody.Data.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 CreateCircuitBreakerRuleResponseBody.Data.Builder namespace(String namespace)
The microservice namespace to which the application belongs.
example:default
public CreateCircuitBreakerRuleResponseBody.Data.Builder regionId(String regionId)
The region in which the instance resides.
example:cn-hangzhou
public CreateCircuitBreakerRuleResponseBody.Data.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 CreateCircuitBreakerRuleResponseBody.Data.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 CreateCircuitBreakerRuleResponseBody.Data.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 CreateCircuitBreakerRuleResponseBody.Data.Builder strategy(Integer strategy)
The threshold type.
Valid values:
0
:
Slow call ratio
1
:
Abnormal proportion
0
public CreateCircuitBreakerRuleResponseBody.Data.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 CreateCircuitBreakerRuleResponseBody.Data build()
Copyright © 2026. All rights reserved.