UNPKG

@softvisio/core

Version:
16 lines (13 loc) 532 B
module: monitoring type: postgresql patch: 2 emits: ~ cron: cleanup: cron: "0 1 * * *" # 01:00 everyday timezone: ~ query: |- DELETE FROM monitoring_instance WHERE last_updated < CURRENT_TIMESTAMP - INTERVAL '30 days'; DELETE FROM monitoring_instance_stats WHERE date < CURRENT_TIMESTAMP - INTERVAL '30 days'; DELETE FROM monitoring_method_stats WHERE date < CURRENT_TIMESTAMP - INTERVAL '30 days'; DELETE FROM monitoring_method_exception WHERE date < CURRENT_TIMESTAMP - INTERVAL '30 days';