feat: add runner failover policies and traces
This commit is contained in:
@@ -266,10 +266,36 @@ export interface RuntimePolicySetUpsertRequest {
|
||||
export interface RuntimePolicyOverride {
|
||||
rateLimitPolicy?: RateLimitPolicy | Record<string, unknown>;
|
||||
retryPolicy?: Record<string, unknown>;
|
||||
failoverPolicy?: Record<string, unknown>;
|
||||
autoDisablePolicy?: Record<string, unknown>;
|
||||
degradePolicy?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface GatewayRunnerPolicy {
|
||||
id: string;
|
||||
policyKey: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
failoverPolicy?: Record<string, unknown>;
|
||||
hardStopPolicy?: Record<string, unknown>;
|
||||
priorityDemotePolicy?: Record<string, unknown>;
|
||||
metadata?: Record<string, unknown>;
|
||||
status: 'active' | 'disabled' | string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface GatewayRunnerPolicyUpsertRequest {
|
||||
policyKey?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
failoverPolicy?: Record<string, unknown>;
|
||||
hardStopPolicy?: Record<string, unknown>;
|
||||
priorityDemotePolicy?: Record<string, unknown>;
|
||||
metadata?: Record<string, unknown>;
|
||||
status?: 'active' | 'disabled' | string;
|
||||
}
|
||||
|
||||
export interface GatewayUser {
|
||||
id: string;
|
||||
userKey: string;
|
||||
@@ -787,6 +813,7 @@ export interface GatewayTaskAttempt {
|
||||
retryable: boolean;
|
||||
simulated: boolean;
|
||||
requestId?: string;
|
||||
statusCode?: number;
|
||||
usage?: Record<string, unknown>;
|
||||
metrics?: Record<string, unknown>;
|
||||
requestSnapshot?: Record<string, unknown>;
|
||||
|
||||
Reference in New Issue
Block a user