elementary.volume_anomalies test monitors the row count of your table over time per time bucket. If configured without a timestamp_column, it will count total table rows.
How it works
- Data is split into time buckets (daily by default, configurable with the
time_bucketfield). - Row count is computed per bucket for the last
training_perioddays (14 days by default). - The test compares the row count of each bucket within the detection period (last 2 days by default, configured as
detection_period) to the row count of previous time buckets. - The test only runs on completed time buckets. For example, with daily buckets, a test run in the middle of today would only count yesterday as a complete bucket.
- If any anomalies are detected during the detection period, the test will fail.
Configuration
- Models
- Models example
Test configuration
No mandatory configuration, however it is highly recommended to configure atimestamp_column.