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