models: - name: < model name > config: elementary: timestamp_column: < timestamp column > data_tests: - elementary.all_columns_anomalies: arguments: column_anomalies: < specific monitors, all if null > where_expression: < sql expression > time_bucket: # Daily by default period: < time period > count: < number of periods >
models: - name: login_events config: elementary: timestamp_column: "loaded_at" data_tests: - elementary.all_columns_anomalies: config: tags: ["elementary"] arguments: where_expression: "event_type in ('event_1', 'event_2') and country_name != 'unwanted country'" time_bucket: period: day count: 1 # optional - change global sensitivity anomaly_sensitivity: 3.5
Anomaly Detection Tests
all_columns_anomalies
Generate your anomaly test with Elementary AI
Let our Slack chatbot create the anomaly test you need.
elementary.all_columns_anomaliesExecutes column level monitors and anomaly detection on all the columns of the table.
Specific monitors are detailed in the table below and can be configured using the columns_anomalies configuration.The test checks the data type of each column and only executes monitors that are relevant to it.
You can use column_anomalies param to override the default monitors, and exclude_prefix / exclude_regexp to exclude columns from the test.Default monitors by type:
models: - name: < model name > config: elementary: timestamp_column: < timestamp column > data_tests: - elementary.all_columns_anomalies: arguments: column_anomalies: < specific monitors, all if null > where_expression: < sql expression > time_bucket: # Daily by default period: < time period > count: < number of periods >
models: - name: login_events config: elementary: timestamp_column: "loaded_at" data_tests: - elementary.all_columns_anomalies: config: tags: ["elementary"] arguments: where_expression: "event_type in ('event_1', 'event_2') and country_name != 'unwanted country'" time_bucket: period: day count: 1 # optional - change global sensitivity anomaly_sensitivity: 3.5