usage_dashboards
Operations on a usage_dashboards
resource.
Overview
Name | usage_dashboards |
Type | Resource |
Id | databricks_account.billing.usage_dashboards |
Fields
Name | Datatype |
---|---|
dashboard_id | string |
dashboard_url | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | account_id | Get a usage dashboard specified by workspaceId, accountId, and dashboard type. |
create | INSERT | account_id | Create 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.
- usage_dashboards
- Manifest
/*+ create */
INSERT INTO databricks_account.billing.usage_dashboards (
account_id,
data__workspace_id,
data__dashboard_type
)
SELECT
'{{ account_id }}',
'{{ workspace_id }}',
'{{ dashboard_type }}'
;
- name: your_resource_model_name
props:
- name: workspace_id
value: 0
- name: dashboard_type
value: USAGE_DASHBOARD_TYPE_WORKSPACE