-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathgcp_billing.model.lkml
45 lines (37 loc) · 1.32 KB
/
gcp_billing.model.lkml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
connection: "sandbox"
include: "*.view.lkml" # include all views in this project
include: "billing.dashboard.lookml" # include all dashboards in this project
explore: gcp_billing_export {
view_label: "GCP Billing"
label: "GCP Billing"
join: gcp_billing_export_project {
view_label: "GCP Billing"
sql: LEFT JOIN UNNEST([${gcp_billing_export.project}]) AS gcp_billing_export_project ;;
relationship: one_to_one
}
join: gcp_billing_export_labels {
view_label: "GCP Billing"
relationship: one_to_many
sql: LEFT JOIN UNNEST(project.labels) AS gcp_billing_export_labels ;;
}
join: gcp_billing_export_usage {
view_label: "GCP Billing"
sql: LEFT JOIN UNNEST([${gcp_billing_export.usage}]) AS gcp_billing_export_usage ;;
relationship: one_to_one
}
join: gcp_billing_export_credits {
view_label: "GCP Billing"
sql: LEFT JOIN UNNEST(credits) AS gcp_billing_export_credits ;;
relationship: one_to_many
}
join: gcp_billing_export_service {
view_label: "GCP Billing"
relationship: one_to_one
sql: LEFT JOIN UNNEST([${gcp_billing_export.service}]) AS gcp_billing_export_service ;;
}
join: gcp_billing_export_sku {
view_label: "GCP Billing"
relationship: one_to_one
sql: LEFT JOIN UNNEST([${gcp_billing_export.sku}]) AS gcp_billing_export_sku ;;
}
}