feat(backup): add scheduler alerts and recovery notifications
This commit is contained in:
@@ -121,6 +121,19 @@ export function discoverServices(
|
||||
},
|
||||
});
|
||||
|
||||
services.push({
|
||||
name: 'backup',
|
||||
type: 'automation',
|
||||
status: config.backup?.enabled ? 'configured' : 'not_configured',
|
||||
description: 'Snapshot backup scheduler',
|
||||
metadata: {
|
||||
schedule: config.backup?.schedule,
|
||||
interval: config.backup?.interval,
|
||||
run_on_start: config.backup?.run_on_start,
|
||||
minio_enabled: config.backup?.minio?.enabled ?? false,
|
||||
},
|
||||
});
|
||||
|
||||
const automation = config.automation;
|
||||
const dailyBriefingEnabled = Boolean(automation.daily_briefing?.enabled && automation.daily_briefing.output);
|
||||
const totalCronJobs = automation.cron.length + (dailyBriefingEnabled ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user