w.data_quality: DataQuality.v1¶
- class databricks.sdk.service.dataquality.DataQualityAPI¶
Manage the data quality of Unity Catalog objects (currently support
schemaandtable)- cancel_refresh(object_type: str, object_id: str, refresh_id: int) CancelRefreshResponse¶
Cancels a data quality monitor refresh. Currently only supported for the
tableobject_type. The call must be made in the same workspace as where the monitor was created.The caller must have either of the following sets of permissions:
MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and MANAGE on the table.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
refresh_id – int Unique id of the refresh operation.
- Returns:
- create_monitor(monitor: Monitor) Monitor¶
Create a data quality monitor on a Unity Catalog object. The caller must provide either
anomaly_detection_configfor a schema monitor ordata_profiling_configfor a table monitor.For the
tableobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and SELECT on the table
USE_CATALOG on the table’s parent catalog, MANAGE and USE_SCHEMA on the table’s parent schema, and SELECT on the table.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and MANAGE and SELECT on the table.
Workspace assets, such as the dashboard, will be created in the workspace where this call was made.
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and MANAGE and USE_SCHEMA on the schema.
- create_refresh(object_type: str, object_id: str, refresh: Refresh) Refresh¶
Creates a refresh. Currently only supported for the
tableobject_type. The call must be made in the same workspace as where the monitor was created.The caller must have either of the following sets of permissions:
MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and MANAGE on the table.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
refresh –
RefreshThe refresh to create
- Returns:
- delete_monitor(object_type: str, object_id: str)¶
Delete a data quality monitor on Unity Catalog object.
For the
tableobject_type, the caller must have either of the following sets of permissions: MANAGE and USE_CATALOG on the table’s parent catalog. USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema. USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and MANAGE on the table.Note that the metric tables and dashboard will not be deleted as part of this call; those assets must be manually cleaned up (if desired).
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and MANAGE and USE_SCHEMA on the schema.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
- delete_refresh(object_type: str, object_id: str, refresh_id: int)¶
(Unimplemented) Delete a refresh
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
refresh_id – int Unique id of the refresh operation.
- get_monitor(object_type: str, object_id: str) Monitor¶
Read a data quality monitor on a Unity Catalog object.
For the
tableobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and SELECT on the table.
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and USE_SCHEMA on the schema.
The returned information includes configuration values on the entity and parent entity as well as information on assets created by the monitor. Some information (e.g. dashboard) may be filtered out if the caller is in a different workspace than where the monitor was created.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
- Returns:
- get_refresh(object_type: str, object_id: str, refresh_id: int) Refresh¶
Get data quality monitor refresh. The call must be made in the same workspace as where the monitor was created.
For the
tableobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and SELECT on the table.
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and USE_SCHEMA on the schema.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
refresh_id – int Unique id of the refresh operation.
- Returns:
- list_monitor([, page_size: Optional[int], page_token: Optional[str]]) Iterator[Monitor]¶
(Unimplemented) List data quality monitors.
- Parameters:
page_size – int (optional)
page_token – str (optional)
- Returns:
Iterator over
Monitor
- list_refresh(object_type: str, object_id: str [, page_size: Optional[int], page_token: Optional[str]]) Iterator[Refresh]¶
List data quality monitor refreshes. The call must be made in the same workspace as where the monitor was created.
For the
tableobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and SELECT on the table.
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and USE_SCHEMA on the schema.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
page_size – int (optional)
page_token – str (optional)
- Returns:
Iterator over
Refresh
- update_monitor(object_type: str, object_id: str, monitor: Monitor, update_mask: str) Monitor¶
Update a data quality monitor on Unity Catalog object.
For the
tableobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the table’s parent catalog.
USE_CATALOG on the table’s parent catalog, and MANAGE and USE_SCHEMA on the table’s parent schema.
USE_CATALOG on the table’s parent catalog, USE_SCHEMA on the table’s parent schema, and MANAGE on the table.
For the
schemaobject_type, the caller must have either of the following sets of permissions:MANAGE and USE_CATALOG on the schema’s parent catalog.
USE_CATALOG on the schema’s parent catalog, and MANAGE and USE_SCHEMA on the schema.
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
monitor –
MonitorThe monitor to update.update_mask – str The field mask to specify which fields to update as a comma-separated list. Example value:
data_profiling_config.custom_metrics,data_profiling_config.schedule.quartz_cron_expression
- Returns:
- update_refresh(object_type: str, object_id: str, refresh_id: int, refresh: Refresh, update_mask: str) Refresh¶
(Unimplemented) Update a refresh
- Parameters:
object_type – str The type of the monitored object. Can be one of the following:
schemaortable.object_id –
str The UUID of the request object. It is
schema_idforschema, andtable_idfortable.Find the
schema_idfrom either:The schema_id of the
Schemasresource.In Catalog Explorer > select the
schema> go to theDetailstab > theSchema IDfield.
Find the
table_idfrom either:The table_id of the
Tablesresource.In Catalog Explorer > select the
table> go to theDetailstab > theTable IDfield.
refresh_id – int Unique id of the refresh operation.
refresh –
RefreshThe refresh to update.update_mask – str The field mask to specify which fields to update.
- Returns: