(config: SSHConnectionConfig)
| 346 | } |
| 347 | |
| 348 | markHealthy(config: SSHConnectionConfig): void { |
| 349 | const key = makeConnectionKey(config); |
| 350 | const existing = this.health.get(key); |
| 351 | this.health.set(key, { |
| 352 | status: "healthy", |
| 353 | lastSuccess: new Date(), |
| 354 | consecutiveFailures: 0, |
| 355 | lastFailure: existing?.lastFailure, |
| 356 | lastError: existing?.lastError, |
| 357 | }); |
| 358 | } |
| 359 | |
| 360 | reportFailure(config: SSHConnectionConfig, errorMessage: string): void { |
| 361 | const key = makeConnectionKey(config); |
no test coverage detected