当然可以,以下是根据官方文档整理的 Elementary 支持的所有检测类型(以 dbt 测试为主): ### 1. 异常检测(Anomaly Detection Tests) -
表级(Table/Model/Source)检测: - **volume_anomalies**:监控表的行数随时间的变化,检测行数的异常波动(如激增或骤减) - **freshness_anomalies**:监控表的更新时间戳,检测数据延迟 - **event_freshness_anomalies**:监控事件数据的“事件发生时间”与“入库时间”之间的延迟 - **dimension_anomalies**:按指定维度(如某一列)分组,监控各组的行数分布变化,适合低基数字段 - **all_columns_anomalies**:对表中所有列执行列级异常检测,可排除部分列 -
列级(Column)检测: - **column_anomalies**:对单个列进行异常检测,支持多种指标(如空值率、最大/最小值、长度等) 详细配置和用法可参考[官方文档](
https://docs.elementary-data.com/data-tests/add-elementary-tests)。 ### 2. 数据质量检测(Data Quality Tests) - **dbt 内置测试**(Elementary 支持收集和展示结果): - not_null - unique - accepted_values - relationship - **dbt-utils、dbt-expectations 等包的测试**(需自行安装包): - 例如 expect_table_row_count_to_be_between、expect_column_values_to_be_between 等 ### 3. Schema 检测(Schema Tests) - **schema_changes**:检测表结构变更 - **baseline_schema**:基线 schema 检查 - **json_schema**:JSON 字段结构校验 - **exposure_schema**:下游暴露表的 schema 检查 ### 4. 其他检测 - **Python tests**:自定义 Python 逻辑的测试 ### 5. Elementary Cloud 自动化监控(Automated Monitors) - **自动 freshness 监控**:基于元数据自动检测表的更新时间延迟 - **自动 volume 监控**:基于元数据自动检测表的行数异常变化 这些自动化监控无需手动配置,连接 Elementary Cloud 后会自动覆盖所有生产表【[Anomaly Detection Monitors](
https://docs.elementary-data.com/features/anomaly-detection/monitors-overview)】【[Add anomaly detection tests](
https://docs.elementary-data.com/data-tests/add-elementary-tests)】【[Elementary Data Tests](
https://docs.elementary-data.com/data-tests/introduction)】。 --- 如需详细配置示例或某一检测类型的具体说明,请告知!