Skip to main content

usage_dashboards

Operations on a usage_dashboards resource.

Overview

Nameusage_dashboards
TypeResource
Iddatabricks_account.billing.usage_dashboards

Fields

NameDatatype
dashboard_idstring
dashboard_urlstring

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_idGet a usage dashboard specified by workspaceId, accountId, and dashboard type.
createINSERTaccount_idCreate a usage dashboard specified by workspaceId, accountId, and dashboard type.

SELECT examples

SELECT
dashboard_id,
dashboard_url
FROM databricks_account.billing.usage_dashboards
WHERE account_id = '{{ account_id }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_account.billing.usage_dashboards (
account_id,
data__workspace_id,
data__dashboard_type
)
SELECT
'{{ account_id }}',
'{{ workspace_id }}',
'{{ dashboard_type }}'
;