Before re-training, the triggered alerts data from T-offset is deleted and the last_anomaly_timestamp is set to one unit lesser than T-offset (unit depends on the anomaly frequency).
Notes for reviewers
See new functions: clear_triggered_alerts_from_offset, set_last_anomaly_timestamp_to_offset
See new code in kpi_anomaly_retraining in anomaly_data_view
Testing
[x] Daily KPI - lyft - individual alert. Alert gets triggered everytime re-training is done. The alert has data for T-offset only.
[x] Hourly KPI - cloud cost - individual alert. Alert gets triggered everytime re-training is done. The alert has data for all hours of today.
Changes
last_anomaly_timestamp
is set to one unit lesser than T-offset (unit depends on the anomaly frequency).Notes for reviewers
clear_triggered_alerts_from_offset
,set_last_anomaly_timestamp_to_offset
kpi_anomaly_retraining
inanomaly_data_view
Testing