Skip to main content

lakeview_schedules

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

Overview

Namelakeview_schedules
TypeResource
Iddatabricks_workspace.dashboards.lakeview_schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dashboard_idstringUUID identifying the dashboard to which the schedule belongs.
schedule_idstringUUID identifying the schedule.
warehouse_idstringThe warehouse id to run the dashboard with for the schedule.
display_namestringThe display name for schedule.
create_timestringA timestamp indicating when the schedule was created.
cron_scheduleobject
etagstringThe etag for the schedule. Must be left empty on create, must be provided on updates to ensure that the schedule has not been modified since the last read, and can be optionally provided on delete.
pause_statusstringThe status indicates whether this schedule is paused or not. (PAUSED, UNPAUSED)
update_timestringA timestamp indicating when the schedule was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdashboard_id, schedule_id, deployment_nameGet dashboard schedule.
listselectdashboard_id, deployment_namepage_size, page_tokenList dashboard schedules.
createinsertdashboard_id, deployment_name, scheduleCreate dashboard schedule.
deletedeletedashboard_id, schedule_id, deployment_nameetagDelete dashboard schedule.

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
dashboard_idstringUUID identifying the dashboard to which the schedule belongs.
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
schedule_idstringUUID identifying the schedule.
etagstringThe etag for the schedule. Optionally, it can be provided to verify that the schedule has not been modified from its last retrieval.
page_sizeintegerThe number of schedules to return per page.
page_tokenstringA page token, received from a previous ListSchedules call. Use this to retrieve the subsequent page.

SELECT examples

Get dashboard schedule.

SELECT
dashboard_id,
schedule_id,
warehouse_id,
display_name,
create_time,
cron_schedule,
etag,
pause_status,
update_time
FROM databricks_workspace.dashboards.lakeview_schedules
WHERE dashboard_id = '{{ dashboard_id }}' -- required
AND schedule_id = '{{ schedule_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

INSERT examples

Create dashboard schedule.

INSERT INTO databricks_workspace.dashboards.lakeview_schedules (
schedule,
dashboard_id,
deployment_name
)
SELECT
'{{ schedule }}' /* required */,
'{{ dashboard_id }}',
'{{ deployment_name }}'
RETURNING
dashboard_id,
schedule_id,
warehouse_id,
display_name,
create_time,
cron_schedule,
etag,
pause_status,
update_time
;

DELETE examples

Delete dashboard schedule.

DELETE FROM databricks_workspace.dashboards.lakeview_schedules
WHERE dashboard_id = '{{ dashboard_id }}' --required
AND schedule_id = '{{ schedule_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND etag = '{{ etag }}'
;