@softvisio/core
Version:
Softisio core
16 lines (13 loc) • 532 B
YAML
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';