-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatency_months.view.lkml
68 lines (61 loc) · 1.58 KB
/
latency_months.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
view: latency_months {
sql_table_name: uptime.latency_months ;;
dimension_group: date {
description: "timestamp of the data collection"
type: time
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
sql: ${TABLE}."date" ;;
drill_fields: [latency,region,date_date,type]
}
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}."date" || ${TABLE}."region" || ${TABLE}."type";;
}
dimension: region {
description: "Name of the region"
type: string
sql: ${TABLE}."region" ;;
drill_fields: [latency,region,date_date,type]
}
dimension: type {
description: "90% or 95%"
type: string
sql: ${TABLE}."type" ;;
drill_fields: [latency,region,date_date,type]
}
dimension: latency {
description: "the muskie latency in ms"
type: number
sql: ${TABLE}."value" ;;
value_format_name: percent_1
drill_fields: [latency,region,date_date,type]
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: [latency,region,date_date,type]
}
measure: latency_sum{
description: "Sum of muskie latency"
type: sum
sql: ${TABLE}."value" ;;
value_format_name: percent_1
drill_fields: [latency,region,date_date,type]
}
measure: latency_avg{
description: "Average of muskie latency"
type: average
sql: ${TABLE}."value" ;;
value_format_name: percent_1
drill_fields: [latency,region,date_date,type]
}
}