+
+ 错误分类处理方式(一般保持默认无需修改)
+ 每个错误分类只放在一个分组;前三组会进入平台间切换,拒绝轮转不会尝试后续平台。
+
+
+ {failoverActionDefinitions.map((action) => (
+
+ ))}
+
+
+
+ );
+}
+
function runnerPolicyToForm(policy: GatewayRunnerPolicy | null): RunnerPolicyForm {
const failover = readObject(policy?.failoverPolicy);
const hardStop = readObject(policy?.hardStopPolicy);
@@ -499,7 +599,7 @@ function runnerFormToPayload(form: RunnerPolicyForm): GatewayRunnerPolicyUpsertR
denyKeywords: cleanTags(form.denyKeywords),
allowStatusCodes: parseNumberTags(form.allowStatusCodes),
denyStatusCodes: parseNumberTags(form.denyStatusCodes),
- actions: Object.keys(form.failoverActions).length > 0 ? form.failoverActions : defaultFailoverActions(),
+ actions: normalizedFailoverActions(form),
},
hardStopPolicy: {
enabled: form.hardStopEnabled,
@@ -552,6 +652,97 @@ function defaultFailoverActions(): Record