-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakoregiontomb.view.lkml
102 lines (96 loc) · 2.15 KB
/
makoregiontomb.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
95
96
97
98
99
100
101
102
view: makoregiontomb {
sql_table_name: smartdc.makoregiontomb ;;
dimension: primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}.storage_id || ${TABLE}.date ;;
}
dimension: cloud {
description: "JPC or SPC"
type: string
sql: ${TABLE}.cloud ;;
}
dimension: datacenter {
description: "Name of the datacenter"
type: string
sql: ${TABLE}.datacenter ;;
}
dimension_group: modify_date {
description: "timestamp of the last time data was updated"
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.modify_date ;;
}
dimension_group: date {
description: "date of the data collection"
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}.date ;;
}
dimension: kilobytes {
description: "mako reported size of tomestone in KiB"
type: number
sql: ${TABLE}.kiliobytes ;;
}
dimension: objects {
description: "mako reported number of objects in the tomestone"
type: number
sql: ${TABLE}.objects ;;
}
dimension: region {
description: "mako region"
type: string
sql: ${TABLE}.region ;;
}
dimension: storage_id {
description: "mako storage id"
type: string
sql: ${TABLE}.storage_id ;;
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: []
}
measure: sum_p {
description: "mako size of tomestone in PiB"
type: sum
sql: ${kilobytes}/1024.0/1024.0/1024.0/1024.0 ;;
value_format_name: decimal_3
}
measure: sum_t {
description: "mako size of tomestone in TiB"
type: sum
sql: ${kilobytes}/1024.0/1024.0/1024.0 ;;
value_format_name: decimal_3
}
measure: sum_g {
description: "mako size of tomestone in GiB"
type: sum
sql: ${kilobytes}/1024.0/1024.0 ;;
value_format_name: decimal_3
}
measure: total_objects {
description: "mako total number of objects in the tomestone"
type: sum
sql: ${objects} ;;
}
}