Class RetentionService
java.lang.Object
com.nmontytskyi.monitoring.server.service.RetentionService
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RetentionService
public RetentionService()
-
-
Method Details
-
runCleanup
-