Skip to main content

vw_log_delivery_workspace_filter

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

Overview

Namevw_log_delivery_workspace_filter
TypeView
Iddatabricks_account.billing.vw_log_delivery_workspace_filter

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
config_idstringUnique identifier for the log delivery configuration.
config_namestringHuman-readable name of the log delivery configuration.
log_typestringType of logs being delivered (e.g. BILLABLE_USAGE, AUDIT_LOGS).
statusstringEnabled/disabled status of the log delivery configuration.
delivery_statusstringStatus of the most recent log delivery attempt.
workspace_idstringID of a workspace included in the delivery filter (one row per workspace).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
config_id,
config_name,
log_type,
status,
delivery_status,
workspace_id
FROM databricks_account.billing.vw_log_delivery_workspace_filter
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
ld.account_id,
ld.config_id,
ld.config_name,
ld.log_type,
ld.status,
JSON_EXTRACT(ld.log_delivery_status, '$.status') AS delivery_status,
w.value AS workspace_id
FROM databricks_account.billing.log_delivery ld,
JSON_EACH(ld.workspace_ids_filter) w
WHERE account_id = '{{ account_id }}'