feat(ops): add setup operator pack, heartbeat alert cooldown, and doctor strict mode
This commit is contained in:
@@ -1002,6 +1002,7 @@ describe('configSchema automation', () => {
|
||||
|
||||
it('defaults heartbeat extended thresholds and checks', () => {
|
||||
const result = configSchema.parse(baseConfig);
|
||||
expect(result.automation.heartbeat.notify_cooldown).toBe('30m');
|
||||
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);
|
||||
|
||||
@@ -308,6 +308,7 @@ const heartbeatCheckSchema = z.enum(['gateway', 'model', 'channels', 'memory', '
|
||||
const heartbeatSchema = z.object({
|
||||
enabled: z.boolean().default(false),
|
||||
interval: z.string().default('5m'),
|
||||
notify_cooldown: z.string().default('30m'),
|
||||
checks: z.array(heartbeatCheckSchema).default(['gateway', 'model', 'channels', 'memory', 'disk', 'process_memory', 'backup', 'provider_errors']),
|
||||
notify: z.object({
|
||||
channel: z.string().min(1),
|
||||
|
||||
Reference in New Issue
Block a user