Class RetentionService

java.lang.Object
com.nmontytskyi.monitoring.server.service.RetentionService

@Service public class RetentionService extends Object
Service that enforces the data-retention policy by deleting records older than the configured retention windows.

Three retention windows are independently configurable (in days): metric_records, alert_events, and report_history. The actual deletion is triggered by RetentionScheduler on a daily or weekly schedule. All settings are read at runtime from AppSettingsService so changes take effect without a server restart.

Author:
Nazar Montytskyi
See Also:
  • Constructor Details

    • RetentionService

      public RetentionService()
  • Method Details