-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuskiedelete.view.lkml
94 lines (87 loc) · 2.34 KB
/
muskiedelete.view.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
view: muskiedelete {
sql_table_name: smartdc.muskiedelete ;;
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}."timestamp" || ${TABLE}."datacenter" || ${TABLE}."owner_uuid";;
}
dimension: datacenter {
description: "datacenter name"
type: string
sql: ${TABLE}.datacenter ;;
}
dimension: deletedtb {
description: "amount of deleted storage in TiB"
type: number
sql: ${TABLE}.deletedtb ;;
value_format_name: decimal_4
}
# Per Elijah this is calculated from the web pov so it is already normalized
dimension: normalized_deletedtb {
description: "amount of deleted storage in TiB Normalized"
type: number
sql: ${deletedtb} ;;
value_format_name: decimal_4
}
dimension: accelerated_gc {
description: "True/False if accelerated garbage collection is enabled"
type: string
sql: ${TABLE}.accelerated_gc ;;
}
dimension: region {
description: "Name of the region"
type: string
sql: ${TABLE}.region ;;
}
dimension: owner_uuid {
description: "UFDS account UUID of the owner"
type: string
sql: ${TABLE}.owner_uuid ;;
}
dimension_group: timestamp {
description: "Timestamp of the data collected"
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.timestamp ;;
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: []
}
measure: sumdelete_TiB {
description: "Sum of the deleted storage in TiB"
type: sum
sql: ${deletedtb} ;;
value_format_name: decimal_4
}
measure: sumdelete_PiB {
description: "Sum of the deleted storage in PiB"
type: sum
sql: ${deletedtb} / 1024.0 ;;
value_format_name: decimal_4
}
# Per Elijah this is calculated from the web pov so it is already normalized
measure: normalized_sumdelete_TiB {
description: "Sum of the normalized deleted storage in TiB"
type: sum
sql: ${deletedtb} ;;
value_format_name: decimal_4
}
# Per Elijah this is calculated from the web pov so it is already normalized
measure: normalized_sumdelete_PiB {
description: "Sum of the normalized deleted storage in PiB"
type: sum
sql: ${deletedtb} / 1024.0 ;;
value_format_name: decimal_4
}
}