ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Circuit breaker states:
* - CLOSED: Normal operation, requests are allowed
* - OPEN: Circuit is tripped, requests fail immediately
* - HALF_OPEN: Testing if the service has recovered
*/
export const CircuitState = {
CLOSED: 'CLOSED',
OPEN: 'OPEN',
HALF_OPEN: 'HALF_OPEN',
} as const;
export type CircuitState = (typeof CircuitState)[keyof typeof CircuitState];
export interface CircuitBreakerOptions {
/** Number of consecutive failures before opening the circuit. */
failureThreshold: number;
/** Time in milliseconds before attempting to close the circuit. */
resetTimeoutMs:
probeTimeoutMs
maxResetTimeoutMs
onStateChange from CircuitState to CircuitState
CircuitBreakerOptions
failureThreshold
resetTimeoutMs
probeTimeoutMs
state CircuitState CircuitState
failureCount
lastFailureTime
probeInFlight
probeStartTime
options CircuitBreakerOptions
currentResetTimeoutMs
options PartialCircuitBreakerOptions
options options
currentResetTimeoutMs optionsresetTimeoutMs
next CircuitState
state next
prev state
state next
optionsonStateChangeprev next
CircuitState
state
state
CircuitState
CircuitState
probeInFlight
probeElapsed Date probeStartTime
probeElapsed optionsprobeTimeoutMs
probeInFlight
probeInFlight
probeInFlight
probeStartTime Date
CircuitState
failureCount
probeInFlight
currentResetTimeoutMs optionsresetTimeoutMs
CircuitState
probeInFlight
wasHalfOpen state CircuitState
failureCount optionsfailureThreshold
failureCount
lastFailureTime Date
probeInFlight
failureCount optionsfailureThreshold
CircuitState
wasHalfOpen state CircuitState
maxTimeout optionsmaxResetTimeoutMs optionsresetTimeoutMs
currentResetTimeoutMs MathcurrentResetTimeoutMs maxTimeout
failureCount
failureCount
lastFailureTime
probeInFlight
probeStartTime
currentResetTimeoutMs optionsresetTimeoutMs
CircuitState
state CircuitState
elapsed Date lastFailureTime
elapsed currentResetTimeoutMs
CircuitState