YAML check format¶
CatalystData's check definitions have a plain YAML shape — the same shape whether a check is built in the UI or embedded in a data contract's checks definition. This page documents that shape so you can read and edit check definitions with confidence, for example when writing a contract version's checks.
Format¶
checks:
- name: orders_no_null_id
check_type: null
table_name: sales.orders
column_name: order_id
- name: orders_row_count_sane
check_type: row_count
table_name: sales.orders
parameters:
min_count: 100
max_count: 5000000
- name: orders_updated_recently
check_type: date_freshness
table_name: sales.orders
column_name: updated_at
parameters:
max_age_hours: 6
schedule_cron: "0 * * * *"
is_active: true
Fields¶
| Field | Required | Description |
|---|---|---|
name |
Yes | A unique, human-readable name for this check |
check_type |
Yes | One of the check types in the check reference |
table_name |
Yes | The table this check runs against |
column_name |
No | Required for column-level check types; omit for table-level ones |
parameters |
No | Check-specific parameters — see each check type's page for what it accepts |
schedule_cron |
No | A cron expression if this check should run on its own schedule |
is_active |
No | Defaults to true |