forked from llooker/demo_segment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.view.lkml
140 lines (117 loc) · 2.38 KB
/
users.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
view: users {
sql_table_name: production.users ;;
dimension: id {
primary_key: yes
type: string
sql: ${TABLE}.id ;;
tags: ["user_id"]
}
dimension: active {
type: yesno
sql: ${TABLE}.active ;;
}
dimension: alias {
type: string
sql: ${TABLE}.alias ;;
}
dimension: chat_only {
type: yesno
sql: ${TABLE}.chat_only ;;
}
dimension_group: created {
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.created_at ;;
}
dimension: email {
type: string
sql: ${TABLE}.email ;;
tags: ["email"]
}
dimension: external_id {
type: string
sql: ${TABLE}.external_id ;;
}
# - dimension: id
# type: string
# sql: ${TABLE}.id
dimension_group: last_login {
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.last_login_at ;;
}
dimension: locale_id {
type: number
sql: ${TABLE}.locale_id ;;
}
dimension: moderator {
type: yesno
sql: ${TABLE}.moderator ;;
}
dimension: only_private_comments {
type: yesno
sql: ${TABLE}.only_private_comments ;;
}
dimension: organization_id {
type: number
# hidden: true
sql: ${TABLE}.organization_id ;;
}
dimension_group: received {
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.received_at ;;
}
dimension: restricted_agent {
type: yesno
hidden: yes
sql: ${TABLE}.restricted_agent ;;
}
dimension: role {
type: string
hidden: yes
sql: ${TABLE}.role ;;
}
dimension: shared {
type: yesno
sql: ${TABLE}.shared ;;
}
dimension: shared_agent {
type: yesno
sql: ${TABLE}.shared_agent ;;
}
dimension: ticket_restriction {
type: string
sql: ${TABLE}.ticket_restriction ;;
}
dimension_group: updated {
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.updated_at ;;
}
dimension: verified {
type: yesno
sql: ${TABLE}.verified ;;
}
measure: count {
type: count
drill_fields: [detail*]
}
# ----- Sets of fields for drilling ------
set: detail {
fields: [
id,
organizations.id,
added_email.count,
clicked_button.count,
created_a_project.count,
deleted_email.count,
groups.count,
identifies.count,
invited_team_member.count,
pages.count,
signup.count,
tracks.count
]
}
}