Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions docs/features/anomaly-detection/metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ No mandatory configuration, however it is highly recommended to configure a `tim
```yml Models
models:
- name: < model name >
config:
elementary:
timestamp_column: < timestamp column >
tests:
- elementary.collect_metrics:
timestamp_column: < timestamp column >
time_bucket: # Daily by default
period: < time period >
count: < number of periods >
Expand All @@ -68,11 +66,9 @@ models:

models:
- name: login_events
config:
elementary:
timestamp_column: 'loaded_at'
tests:
- elementary.collect_metrics:
timestamp_column: 'loaded_at'
time_bucket:
period: hour
count: 1
Expand All @@ -86,9 +82,9 @@ models:
type: row_count
- name: null_count
type: null_count
columns: [hello, world]
columns: ["hello", "world"]
where_expression: "country = 'USA'"
cloud_monitored=True
cloud_monitored: true

```

Expand Down
Loading