-
Notifications
You must be signed in to change notification settings - Fork 15
/
zendesk_block.model.lkml
72 lines (58 loc) · 1.62 KB
/
zendesk_block.model.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
connection: "fivetran_looker_blocks_demo"
include: "*_zendesk_block.view"
include: "*_zendesk_variables.view"
include: "*.dashboard"
explore: ticket {
join: assignee {
sql_on: ${ticket.assignee_id} = ${assignee.id} ;;
relationship: many_to_one
}
join: requester {
sql_on: ${ticket.requester_id} = ${requester.id} ;;
relationship: many_to_one
}
join: group_member {
sql_on: ${assignee.id} = ${group_member.user_id} ;;
relationship: many_to_one
}
join: group {
sql_on: ${group_member.group_id} = ${group.id} ;;
relationship: many_to_one
}
join: organization_member {
sql_on: ${requester.id} = ${organization_member.user_id} ;;
relationship: many_to_one
}
join: organization {
sql_on: ${organization_member.organization_id} = ${organization.id} ;;
relationship: many_to_one
}
join: brand {
type: left_outer
sql_on: ${ticket.brand_id} = ${brand.id} ;;
relationship: many_to_one
}
join: ticket_comment {
type: left_outer
sql_on: ${ticket.id} = ${ticket_comment.ticket_id} ;;
relationship: one_to_many
}
join: commenter {
sql_on: ${ticket_comment.user_id} = ${commenter.id} ;;
relationship: many_to_one
}
join: ticket_assignee_facts {
type: left_outer
sql_on: ${ticket.assignee_id} = ${ticket_assignee_facts.assignee_id} ;;
relationship: many_to_one
}
# metric queries
join: ticket_history_facts {
sql_on: ${ticket.id} = ${ticket_history_facts.ticket_id} ;;
relationship: one_to_one
}
join: number_of_reopens {
sql_on: ${ticket.id} = ${number_of_reopens.ticket_id} ;;
relationship: one_to_one
}
}