1.7 KiB
1.7 KiB
Doctor Scheduled Runs with Alerting and Trend Analysis
Module
Doctor
Status
IMPLEMENTED
Description
Cron-based scheduled execution of Doctor health checks with configurable schedules, trend data storage for historical analysis, anomaly detection for health metric degradation, and alerting service integration for notifications on health regressions.
Implementation Details
- Schedule worker:
src/Doctor/StellaOps.Doctor.Scheduler/DoctorScheduleWorker.cs-- background worker for cron-based execution - Schedule executor:
src/Doctor/StellaOps.Doctor.Scheduler/Services/ScheduleExecutor.cs-- executes scheduled doctor runs - Schedule models:
src/Doctor/StellaOps.Doctor.Scheduler/Models/DoctorSchedule.cs-- schedule configuration - Execution tracking:
src/Doctor/StellaOps.Doctor.Scheduler/Models/ScheduleExecution.cs-- execution records - Trend data:
src/Doctor/StellaOps.Doctor.Scheduler/Models/TrendDataPoint.cs-- trend analysis data model - Alert service:
src/Doctor/StellaOps.Doctor.Scheduler/Services/IAlertService.cs-- alerting interface for health regressions - Schedule repository:
src/Doctor/StellaOps.Doctor.Scheduler/Services/IScheduleRepository.cs - Trend repository:
src/Doctor/StellaOps.Doctor.Scheduler/Services/ITrendRepository.cs-- trend data persistence - Options:
src/Doctor/StellaOps.Doctor.Scheduler/Options/DoctorSchedulerOptions.cs-- scheduler configuration - Source: SPRINT_20260118_020_Doctor_scheduled_runs_trending.md
E2E Test Plan
- Verify scheduled doctor runs execute at configured intervals
- Test trend data accumulation over multiple runs
- Verify alert service triggers on health degradation
- Test schedule CRUD operations via repository