Cron and cleanup

For arlanix/api-monitor 1.0.1

Cron and cleanup

Jobs use Magento's default cron group:

Job code Schedule Work
arlanix_api_monitor_anomalies * * * * * (every minute) Evaluate completed minutes and retain alerts.
arlanix_api_monitor_cleanup */10 * * * * (every ten minutes) Remove expired requests, payloads, alerts, counters and traffic history.

The first anomaly run checks the latest completed minute; later runs resume after the last evaluation. Up to eight completed minutes are checked, oldest first. Older minutes are not checked. A minute the check failed on is tried again within that limit.

Scheduled checks skip minutes with capture or anomaly detection disabled.

Cleanup continues with capture disabled; see Retention. Runs of the same job cannot overlap.

Inspect cron_schedule (including table prefixes) and var/log/arlanix.log for failures. Logged messages are API anomaly check failed. or API log cleanup failed..