public static final class AddMockRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddMockRuleRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
AddMockRuleRequest |
build() |
AddMockRuleRequest.Builder |
consumerAppIds(String consumerAppIds)
The ID of the custom application.
|
AddMockRuleRequest.Builder |
dubboMockItems(String dubboMockItems)
The items in the recycle bin.
|
AddMockRuleRequest.Builder |
enable(Boolean enable)
Specifies whether to enable the alert rule.
|
AddMockRuleRequest.Builder |
extraJson(String extraJson)
The description.
|
AddMockRuleRequest.Builder |
mockType(Long mockType)
The response time (RT) threshold of slow calls.
|
AddMockRuleRequest.Builder |
name(String name)
The name of the rule.
|
AddMockRuleRequest.Builder |
providerAppId(String providerAppId)
The ID of the service provider application.
|
AddMockRuleRequest.Builder |
providerAppName(String providerAppName)
The name of the service provider application.
|
AddMockRuleRequest.Builder |
region(String region)
The ID of the region.
|
AddMockRuleRequest.Builder |
scMockItems(String scMockItems)
The input parameters.
|
AddMockRuleRequest.Builder |
source(String source)
The rule source.
|
public AddMockRuleRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public AddMockRuleRequest.Builder consumerAppIds(String consumerAppIds)
The ID of the custom application.
This parameter is required.
example:[{"appName":"provide","appId":"bst8l6o735@f6d8aaf6e56e67d"}]
public AddMockRuleRequest.Builder dubboMockItems(String dubboMockItems)
The items in the recycle bin.
This parameter is required.
example:[]
public AddMockRuleRequest.Builder enable(Boolean enable)
Specifies whether to enable the alert rule. Valid values:
true: enables the alert rule.false: disables the alert rule.true
public AddMockRuleRequest.Builder extraJson(String extraJson)
The description.
This parameter is required.
example:{}
public AddMockRuleRequest.Builder mockType(Long mockType)
The response time (RT) threshold of slow calls. Valid values:
1
public AddMockRuleRequest.Builder name(String name)
The name of the rule.
This parameter is required.
example:agent-auto-test-sc
public AddMockRuleRequest.Builder providerAppId(String providerAppId)
The ID of the service provider application.
example:dcqtkuhnc4@66e5235415****
public AddMockRuleRequest.Builder providerAppName(String providerAppName)
The name of the service provider application.
example:demo-cartservice
public AddMockRuleRequest.Builder region(String region)
The ID of the region.
This parameter is required.
example:cn-hangzhou
public AddMockRuleRequest.Builder scMockItems(String scMockItems)
The input parameters. The JSON format is supported.
This parameter is required.
example:[]
public AddMockRuleRequest.Builder source(String source)
The rule source.
This parameter is required.
example:edasmsc
public AddMockRuleRequest build()
Copyright © 2026. All rights reserved.