-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbandwidth.view.lkml
106 lines (99 loc) · 2.67 KB
/
bandwidth.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
103
104
105
106
view: bandwidth {
sql_table_name: smartdc.bandwidth ;;
dimension: compound_primary_key {
description: "primary key datacenter, date and owner uuid"
primary_key: yes
hidden: yes
sql: ${TABLE}."datacenter" || ${TABLE}."date" || ${TABLE}."owner_uuid";;
}
dimension: datacenter {
type: string
description: "datacenter from instances.json"
sql: ${TABLE}."datacenter" ;;
}
dimension_group: date {
type: time
description: "YYYY-MM-DD, data collected on a daily cadence at the end of the day "
timeframes: [
raw,
date,
week,
month,
quarter,
year
]
convert_tz: no
datatype: date
sql: ${TABLE}."date" ;;
}
dimension: in {
description: "total number of bytes in on public interface "
type: number
sql: ${TABLE}."in" ;;
}
dimension: out {
description: "total number of bytes out on public interface"
type: number
sql: ${TABLE}."out" ;;
}
dimension: owner_uuid {
description: "ufds uuid for customer"
type: string
sql: ${TABLE}."owner_uuid" ;;
}
measure: count {
description: "count of bw records"
type: count
drill_fields: []
}
measure: in_k {
description: "total number of kilobytes in on public interface "
type: sum_distinct
sql: ${in}/1000.0;;
}
measure: in_m {
description: "total number of megabytes in on public interface "
type: sum_distinct
sql: ${in}/1000.0/1000.0;;
}
measure: in_g {
description: "total number of gigabytes in on public interface "
type: sum_distinct
sql: ${in}/1000.0/1000.0/1000.0;;
}
measure: in_t {
description: "total number of terabytes in on public interface "
type: sum_distinct
sql: ${in}/1000.0/1000.0/1000.0/1000.0;;
}
measure: in_p {
description: "total number of petabytes in on public interface "
type: sum_distinct
sql: ${in}/1000.0/1000.0/1000.0/1000.0/1000.0;;
}
measure: out_k {
description: "total number of kilobytes out on public interface"
type: sum_distinct
sql: ${in}/1000.0;;
}
measure: out_m {
description: "total number of megabytes out on public interface"
type: sum_distinct
sql: ${out}/1000.0/1000.0;;
}
measure: out_g {
description: "total number of gigabytes out on public interface"
type: sum_distinct
sql: ${out}/1000.0/1000.0/1000.0;;
}
measure: out_t {
description: "total number of terabytes out on public interface"
type: sum_distinct
sql: ${out}/1000.0/1000.0/1000.0/1000.0;;
}
measure: out_p {
type: sum_distinct
description: "total number of petabytes out on public interface"
sql: ${out}/1000.0/1000.0/1000.0/1000.0/1000.0;;
}
}