Skip to main content

quality_monitor_refreshes

Creates, updates, deletes, gets or lists a quality_monitor_refreshes resource.

Overview

Namequality_monitor_refreshes
TypeResource
Iddatabricks_workspace.unitycatalog.quality_monitor_refreshes

Fields

The following fields are returned by SELECT queries:

The list of refresh info was successfully retrieved.

NameDatatypeDescription
refresh_idinteger
end_time_msinteger
messagestring
start_time_msinteger
statestring
triggerstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listrefreshesselectdeployment_nameGets an array containing the history of the most recent refreshes (up to 25) for this table.
getrefreshselectdeployment_nameGets info about a specific monitor refresh using the given refresh ID.
runrefreshexecdeployment_nameQueues a metric refresh on the monitor for the specified table. The refresh will execute in the background.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Gets an array containing the history of the most recent refreshes (up to 25) for this table.

SELECT
refresh_id,
end_time_ms,
message,
start_time_ms,
state,
trigger
FROM databricks_workspace.unitycatalog.quality_monitor_refreshes
WHERE deployment_name = '{{ deployment_name }}' -- required;

Lifecycle Methods

Queues a metric refresh on the monitor for the specified table. The refresh will execute in the background.

EXEC databricks_workspace.unitycatalog.quality_monitor_refreshes.runrefresh 
@deployment_name='{{ deployment_name }}' --required;