-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanta_usage.view.lkml
91 lines (84 loc) · 2.1 KB
/
manta_usage.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
view: manta_usage {
sql_table_name: capacity.manta_usage ;;
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}."date" || ${TABLE}."region" || ${TABLE}."login";;
}
dimension_group: date {
description: "Timestamp of data collected"
type: time
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}."date" ;;
}
dimension: login {
description: "UFDS login for account"
type: string
sql: ${TABLE}."login" ;;
}
dimension: object_count {
description: "The total number of objects for this account"
type: number
sql: ${TABLE}."object_count" ;;
}
dimension: region {
description: "Region of manta"
type: string
sql: ${TABLE}."region" ;;
}
dimension: used_bytes {
description: "amount of manta data in bytes"
type: number
sql: ${TABLE}."used_bytes" ;;
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: []
}
measure: used_kib {
description: "amount of manta data in KiB"
type: sum
sql: ${used_bytes} / 1024.0 ;;
value_format_name: decimal_2
}
measure: used_mib {
description: "amount of manta data in MiB"
type: sum
sql: ${used_bytes} / 1024.0 / 1024.0 ;;
value_format_name: decimal_2
}
measure: used_gib {
description: "amount of manta data in GiB"
type: sum
sql: ${used_bytes} / 1024.0 / 1024.0 / 1024.0 ;;
value_format_name: decimal_2
}
measure: used_tib {
description: "amount of manta data in TiB"
type: sum
sql: ${used_bytes} / 1024.0 / 1024.0 / 1024.0 / 1024.0 ;;
value_format_name: decimal_2
}
measure: used_pib {
description: "amount of manta data in PiB"
type: sum
sql: ${used_bytes} / 1024.0 / 1024.0 / 1024.0 / 1024.0 / 1024.0 ;;
value_format_name: decimal_2
}
measure: total_objects_million {
description: "Total count of manta objects in millions"
type: sum
sql: ${object_count}/1000000.0 ;;
value_format_name: decimal_2
}
}