dbt test
, in a way that is similar to how training data for anomaly tests is collected.
A metric can be collected with or without an anomaly detection test configured on it.
timestamp_column
.
tests:
— elementary.collect_metrics:
timestamp_column: column name
time_bucket:
period: [hour | day]
count: int
dimensions: sql expression
metrics: monitors list
name: string
type: monitor type
columns: list
where_expression: sql expression
dbt test
, your data is split into buckets:
time bucket
fieldtimestamp_column
selected