Skip to main content

dashboard_schedules

Operations on a dashboard_schedules resource.

Overview

Namedashboard_schedules
TypeResource
Iddatabricks_workspace.lakeview.dashboard_schedules

Fields

NameDatatype
create_timestring
cron_scheduleobject
dashboard_idstring
display_namestring
etagstring
pause_statusstring
schedule_idstring
update_timestring
warehouse_idstring

Methods

NameAccessible byRequired ParamsDescription
getscheduleSELECTdashboard_id, schedule_id, deployment_name
listschedulesSELECTdashboard_id, deployment_name
createscheduleINSERTdeployment_name
deletescheduleDELETEdashboard_id, schedule_id, deployment_name
updatescheduleUPDATEdeployment_name

SELECT examples

SELECT
create_time,
cron_schedule,
dashboard_id,
display_name,
etag,
pause_status,
schedule_id,
update_time,
warehouse_id
FROM databricks_workspace.lakeview.dashboard_schedules
WHERE dashboard_id = '{{ dashboard_id }}' AND
deployment_name = '{{ deployment_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new dashboard_schedules resource.

/*+ create */
INSERT INTO databricks_workspace.lakeview.dashboard_schedules (
deployment_name,
data__cron_schedule,
data__pause_status,
data__display_name,
data__etag,
data__warehouse_id
)
SELECT
'{{ deployment_name }}',
'{{ cron_schedule }}',
'{{ pause_status }}',
'{{ display_name }}',
'{{ etag }}',
'{{ warehouse_id }}'
;

UPDATE example

Updates a dashboard_schedules resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.lakeview.dashboard_schedules
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a dashboard_schedules resource.

/*+ delete */
DELETE FROM databricks_workspace.lakeview.dashboard_schedules
WHERE dashboard_id = '{{ dashboard_id }}' AND
schedule_id = '{{ schedule_id }}' AND
deployment_name = '{{ deployment_name }}';