vw_views
Creates, updates, deletes, gets or lists a vw_views
resource.
Overview
Name | vw_views |
Type | View |
Id | azure.cost_management.vw_views |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
type as type,
eTag as e_tag,
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.scope') as "scope",
JSON_EXTRACT(properties, '$.createdOn') as "created_on",
JSON_EXTRACT(properties, '$.modifiedOn') as "modified_on",
JSON_EXTRACT(properties, '$.dateRange') as "date_range",
JSON_EXTRACT(properties, '$.currency') as "currency",
JSON_EXTRACT(properties, '$.query') as "query",
JSON_EXTRACT(properties, '$.chart') as "chart",
JSON_EXTRACT(properties, '$.accumulated') as "accumulated",
JSON_EXTRACT(properties, '$.metric') as "metric",
JSON_EXTRACT(properties, '$.kpis') as "kpis",
JSON_EXTRACT(properties, '$.pivots') as "pivots",
scope,
viewName
FROM azure.cost_management.views
WHERE scope = 'replace-me' AND viewName = 'replace-me';
SELECT
id as id,
name as name,
type as type,
eTag as e_tag,
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.scope') as "scope",
json_extract_path_text(properties, '$.createdOn') as "created_on",
json_extract_path_text(properties, '$.modifiedOn') as "modified_on",
json_extract_path_text(properties, '$.dateRange') as "date_range",
json_extract_path_text(properties, '$.currency') as "currency",
json_extract_path_text(properties, '$.query') as "query",
json_extract_path_text(properties, '$.chart') as "chart",
json_extract_path_text(properties, '$.accumulated') as "accumulated",
json_extract_path_text(properties, '$.metric') as "metric",
json_extract_path_text(properties, '$.kpis') as "kpis",
json_extract_path_text(properties, '$.pivots') as "pivots",
scope,
viewName
FROM azure.cost_management.views
WHERE scope = 'replace-me' AND viewName = 'replace-me';