-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.view.lkml
73 lines (67 loc) · 1.73 KB
/
status.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
view: status {
sql_table_name: uptime.status ;;
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql: ${TABLE}."date" || ${TABLE}."region" || ${TABLE}."httpcode";;
}
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: [httpcode,region,value,date_date]
}
dimension: httpcode {
description: "The muskie http code number"
type: number
sql: ${TABLE}."httpcode" ;;
drill_fields: [httpcode,region,value,date_date]
}
dimension: code_buckets {
description: "Grouping httpcodes by 200,300,400,500 tiers"
type: tier
tiers: [200,300,400,500]
style: integer
drill_fields: [httpcode,region,value,date_time]
sql: ${TABLE}."httpcode" ;;
}
dimension: region {
description: "Name of the region"
type: string
sql: ${TABLE}."region" ;;
drill_fields: [httpcode,region,value,date_date]
}
dimension: value {
description: "Number of http codes found"
type: number
sql: ${TABLE}."value" ;;
drill_fields: [httpcode,region,value,date_date]
}
measure: count {
description: "Number of distinct objects returned in query"
type: count
drill_fields: [httpcode,region,value,date_date]
}
measure: five_minute_moving_avg{
description: "Five minute moving average percentage"
type: average
sql: ${TABLE}."value" ;;
drill_fields: [httpcode,region,value,date_date]
}
measure: five_minute_sum{
description: "Five minute moving average sum"
type: sum
sql: ${TABLE}."value" ;;
drill_fields: [httpcode,region,value,date_date]
}
}