Skip to content

Commit

Permalink
Make the schedule.pause_status field read-only (#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
touchida authored Jul 3, 2024
1 parent ff837ab commit 0d943ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions catalog/resource_quality_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func ResourceQualityMonitor() common.Resource {
common.CustomizeSchemaPath(m, "profile_metrics_table_name").SetReadOnly()
common.CustomizeSchemaPath(m, "status").SetReadOnly()
common.CustomizeSchemaPath(m, "dashboard_id").SetReadOnly()
common.CustomizeSchemaPath(m, "schedule", "pause_status").SetReadOnly()
return m
},
)
Expand Down
1 change: 0 additions & 1 deletion docs/resources/quality_monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ table.
* `schedule` - The schedule for automatically updating and refreshing metric tables. This block consists of following fields:
* `quartz_cron_expression` - string expression that determines when to run the monitor. See [Quartz documentation](https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html) for examples.
* `timezone_id` - string with timezone id (e.g., `PST`) in which to evaluate the Quartz expression.
* `pause_status` - optional string field that indicates whether a schedule is paused (`PAUSED`) or not (`UNPAUSED`).
* `skip_builtin_dashboard` - Whether to skip creating a default dashboard summarizing data quality metrics.
* `slicing_exprs` - List of column expressions to slice data with for targeted analysis. The data is grouped by each expression independently, resulting in a separate slice for each predicate and its complements. For high-cardinality columns, only the top 100 unique values by frequency will generate slices.
* `warehouse_id` - Optional argument to specify the warehouse for dashboard creation. If not specified, the first running warehouse will be used.
Expand Down

0 comments on commit 0d943ea

Please sign in to comment.