feat: add runner failover policies and traces
This commit is contained in:
@@ -10,6 +10,8 @@ import type {
|
||||
GatewayAccessRuleUpsertRequest,
|
||||
GatewayApiKey,
|
||||
GatewayAuditLog,
|
||||
GatewayRunnerPolicy,
|
||||
GatewayRunnerPolicyUpsertRequest,
|
||||
GatewayTenant,
|
||||
GatewayTenantUpsertRequest,
|
||||
GatewayNetworkProxyConfig,
|
||||
@@ -239,6 +241,21 @@ export async function listRuntimePolicySets(token: string): Promise<ListResponse
|
||||
return request<ListResponse<RuntimePolicySet>>('/api/admin/runtime/policy-sets', { token });
|
||||
}
|
||||
|
||||
export async function getRunnerPolicy(token: string): Promise<GatewayRunnerPolicy> {
|
||||
return request<GatewayRunnerPolicy>('/api/admin/runtime/runner-policy', { token });
|
||||
}
|
||||
|
||||
export async function updateRunnerPolicy(
|
||||
token: string,
|
||||
input: GatewayRunnerPolicyUpsertRequest,
|
||||
): Promise<GatewayRunnerPolicy> {
|
||||
return request<GatewayRunnerPolicy>('/api/admin/runtime/runner-policy', {
|
||||
body: input,
|
||||
method: 'PATCH',
|
||||
token,
|
||||
});
|
||||
}
|
||||
|
||||
export async function createRuntimePolicySet(
|
||||
token: string,
|
||||
input: RuntimePolicySetUpsertRequest,
|
||||
|
||||
Reference in New Issue
Block a user