forked from looker/block-gcp-billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcp_billing_export_core.explore.lkml
51 lines (43 loc) · 1.46 KB
/
gcp_billing_export_core.explore.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
46
47
48
49
50
51
explore: gcp_billing_export_core {
extension: required
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 ;;
}
join: project_name_sort {
relationship: many_to_one
sql_on: ${gcp_billing_export_project.name} = ${project_name_sort.name} ;;
}
join: service_name_sort {
relationship: many_to_one
sql_on: ${gcp_billing_export_service.description} = ${service_name_sort.name} ;;
}
}