elementary.event_freshness_anomalies test monitors the freshness of event data over time, measuring the expected time it takes each event to load. This is calculated as the time between when the event actually occurs (the event timestamp) and when it is loaded to the database (the update timestamp).
This test complements the freshness_anomalies test and is primarily intended for data that is updated in a continuous or streaming fashion.
How it works
The test can operate in two modes:- If only an
event_timestamp_columnis supplied:- The test measures the difference between the current timestamp (“now”) and the most recent event timestamp.
- If both an
event_timestamp_columnand anupdate_timestamp_columnare provided:- The test measures the difference between these two columns.
- Models
- Models example
Test configuration
Important Notes
- Required configuration:
event_timestamp_columnis mandatory. - Default configuration:
anomaly_direction: spiketo alert only on delays.