Microsoft.App managedEnvironments/daprComponents/resiliencyPolicies 2024-02-02-preview
Bicep 資源定義
managedEnvironments/daprComponents/resiliencyPolicies 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies@2024-02-02-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
inboundPolicy: {
circuitBreakerPolicy: {
consecutiveErrors: int
intervalInSeconds: int
timeoutInSeconds: int
}
httpRetryPolicy: {
maxRetries: int
retryBackOff: {
initialDelayInMilliseconds: int
maxIntervalInMilliseconds: int
}
}
timeoutPolicy: {
responseTimeoutInSeconds: int
}
}
outboundPolicy: {
circuitBreakerPolicy: {
consecutiveErrors: int
intervalInSeconds: int
timeoutInSeconds: int
}
httpRetryPolicy: {
maxRetries: int
retryBackOff: {
initialDelayInMilliseconds: int
maxIntervalInMilliseconds: int
}
}
timeoutPolicy: {
responseTimeoutInSeconds: int
}
}
}
}
屬性值
DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration
名字 |
描述 |
價值 |
consecutiveErrors |
開啟線路前的連續錯誤數目。 |
int |
intervalInSeconds |
選擇性間隔,以秒為單位,錯誤計數會重設為0。 間隔 0 永遠不會重設。 如果未指定,則會使用timeoutInSeconds值。 |
int |
timeoutInSeconds |
在開啟線路之後重試嘗試的間隔,以秒為單位。 |
int |
DaprComponentResiliencyPolicyConfiguration
DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration
名字 |
描述 |
價值 |
initialDelayInMilliseconds |
重試作業前的選擇性初始延遲以毫秒為單位 |
int |
maxIntervalInMilliseconds |
重試嘗試之間以毫秒為單位的選擇性最大時間間隔 |
int |
DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration
DaprComponentResiliencyPolicyProperties
DaprComponentResiliencyPolicyTimeoutPolicyConfiguration
名字 |
描述 |
價值 |
responseTimeoutInSeconds |
以秒為單位的選擇性回應逾時 |
int |
Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies
ARM 樣本資源定義
managedEnvironments/daprComponents/resiliencyPolicies 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies",
"apiVersion": "2024-02-02-preview",
"name": "string",
"properties": {
"inboundPolicy": {
"circuitBreakerPolicy": {
"consecutiveErrors": "int",
"intervalInSeconds": "int",
"timeoutInSeconds": "int"
},
"httpRetryPolicy": {
"maxRetries": "int",
"retryBackOff": {
"initialDelayInMilliseconds": "int",
"maxIntervalInMilliseconds": "int"
}
},
"timeoutPolicy": {
"responseTimeoutInSeconds": "int"
}
},
"outboundPolicy": {
"circuitBreakerPolicy": {
"consecutiveErrors": "int",
"intervalInSeconds": "int",
"timeoutInSeconds": "int"
},
"httpRetryPolicy": {
"maxRetries": "int",
"retryBackOff": {
"initialDelayInMilliseconds": "int",
"maxIntervalInMilliseconds": "int"
}
},
"timeoutPolicy": {
"responseTimeoutInSeconds": "int"
}
}
}
}
屬性值
DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration
名字 |
描述 |
價值 |
consecutiveErrors |
開啟線路前的連續錯誤數目。 |
int |
intervalInSeconds |
選擇性間隔,以秒為單位,錯誤計數會重設為0。 間隔 0 永遠不會重設。 如果未指定,則會使用timeoutInSeconds值。 |
int |
timeoutInSeconds |
在開啟線路之後重試嘗試的間隔,以秒為單位。 |
int |
DaprComponentResiliencyPolicyConfiguration
DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration
名字 |
描述 |
價值 |
initialDelayInMilliseconds |
重試作業前的選擇性初始延遲以毫秒為單位 |
int |
maxIntervalInMilliseconds |
重試嘗試之間以毫秒為單位的選擇性最大時間間隔 |
int |
DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration
DaprComponentResiliencyPolicyProperties
DaprComponentResiliencyPolicyTimeoutPolicyConfiguration
名字 |
描述 |
價值 |
responseTimeoutInSeconds |
以秒為單位的選擇性回應逾時 |
int |
Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2024-02-02-preview' |
名字 |
資源名稱 |
字串 (必要) |
性能 |
Dapr 元件復原原則資源特定屬性 |
DaprComponentResiliencyPolicyProperties |
類型 |
資源類型 |
'Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies' |
managedEnvironments/daprComponents/resiliencyPolicies 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies@2024-02-02-preview"
name = "string"
body = jsonencode({
properties = {
inboundPolicy = {
circuitBreakerPolicy = {
consecutiveErrors = int
intervalInSeconds = int
timeoutInSeconds = int
}
httpRetryPolicy = {
maxRetries = int
retryBackOff = {
initialDelayInMilliseconds = int
maxIntervalInMilliseconds = int
}
}
timeoutPolicy = {
responseTimeoutInSeconds = int
}
}
outboundPolicy = {
circuitBreakerPolicy = {
consecutiveErrors = int
intervalInSeconds = int
timeoutInSeconds = int
}
httpRetryPolicy = {
maxRetries = int
retryBackOff = {
initialDelayInMilliseconds = int
maxIntervalInMilliseconds = int
}
}
timeoutPolicy = {
responseTimeoutInSeconds = int
}
}
}
})
}
屬性值
DaprComponentResiliencyPolicyCircuitBreakerPolicyConfiguration
名字 |
描述 |
價值 |
consecutiveErrors |
開啟線路前的連續錯誤數目。 |
int |
intervalInSeconds |
選擇性間隔,以秒為單位,錯誤計數會重設為0。 間隔 0 永遠不會重設。 如果未指定,則會使用timeoutInSeconds值。 |
int |
timeoutInSeconds |
在開啟線路之後重試嘗試的間隔,以秒為單位。 |
int |
DaprComponentResiliencyPolicyConfiguration
DaprComponentResiliencyPolicyHttpRetryBackOffConfiguration
名字 |
描述 |
價值 |
initialDelayInMilliseconds |
重試作業前的選擇性初始延遲以毫秒為單位 |
int |
maxIntervalInMilliseconds |
重試嘗試之間以毫秒為單位的選擇性最大時間間隔 |
int |
DaprComponentResiliencyPolicyHttpRetryPolicyConfiguration
DaprComponentResiliencyPolicyProperties
DaprComponentResiliencyPolicyTimeoutPolicyConfiguration
名字 |
描述 |
價值 |
responseTimeoutInSeconds |
以秒為單位的選擇性回應逾時 |
int |
Microsoft.App/managedEnvironments/daprComponents/resiliencyPolicies