-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmail_job.view.lookml
64 lines (47 loc) · 1.21 KB
/
mail_job.view.lookml
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
- view: mail_job
sql_table_name: MAIL_JOB
fields:
- dimension: id
primary_key: true
type: int
sql: ${TABLE}.ID
- dimension: attachment_file
sql: ${TABLE}.ATTACHMENT_FILE
- dimension: attachment_file_name
sql: ${TABLE}.ATTACHMENT_FILE_NAME
- dimension: attempts
type: int
sql: ${TABLE}.ATTEMPTS
- dimension_group: created
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.CREATED_AT
- dimension: hash
sql: ${TABLE}.HASH
- dimension: html_body
sql: ${TABLE}.HTML_BODY
- dimension_group: last_attempted
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.LAST_ATTEMPTED_AT
- dimension_group: next_attempt
type: time
timeframes: [time, date, week, month]
sql: ${TABLE}.NEXT_ATTEMPT_AT
- dimension: raw
sql: ${TABLE}.RAW
- dimension: reply_to
sql: ${TABLE}.REPLY_TO
- dimension: scheduled_task_id
type: int
# hidden: true
sql: ${TABLE}.SCHEDULED_TASK_ID
- dimension: subject
sql: ${TABLE}.SUBJECT
- dimension: to
sql: ${TABLE}."TO"
- dimension: type
sql: ${TABLE}.TYPE
- measure: count
type: count
drill_fields: [id, attachment_file_name, scheduled_task.id]