feat(heartbeat): add provider error-rate spike check
This commit is contained in:
@@ -967,8 +967,11 @@ describe('configSchema automation', () => {
|
||||
const result = configSchema.parse(baseConfig);
|
||||
expect(result.automation.heartbeat.process_memory_threshold_mb).toBe(1500);
|
||||
expect(result.automation.heartbeat.backup_failure_threshold).toBe(1);
|
||||
expect(result.automation.heartbeat.provider_error_rate_threshold).toBe(0.5);
|
||||
expect(result.automation.heartbeat.provider_error_min_calls).toBe(5);
|
||||
expect(result.automation.heartbeat.checks).toContain('process_memory');
|
||||
expect(result.automation.heartbeat.checks).toContain('backup');
|
||||
expect(result.automation.heartbeat.checks).toContain('provider_errors');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user