forked from fivetran/dbt_hubspot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
email_events.yml
478 lines (344 loc) · 15.7 KB
/
email_events.yml
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
version: 2
models:
- name: hubspot__email_event_bounce
description: Each record represents a BOUNCE email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: bounce_category
description: |
The best-guess of the type of bounce encountered.
If an appropriate category couldn't be determined, this property is omitted. See below for the possible values.
Note that this is a derived value, and may be modified at any time to improve the accuracy of classification.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: returned_response
description: The full response from the recipient's email server.
- name: returned_status
description: The status code returned from the recipient's email server.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_clicks
description: Each record represents a CLICK email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: browser
description: '{{ doc("email_event_browser") }}'
- name: click_url
description: The URL within the message that the recipient clicked.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: geo_location
description: '{{ doc("email_event_location") }}'
- name: ip_address
description: '{{ doc("email_event_ip_address") }}'
- name: referer_url
description: The URL of the webpage that linked to the URL clicked. Whether this is provided, and what its value is, is determined by the recipient's email client.
- name: user_agent
description: '{{ doc("email_event_user_agent") }}'
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_deferred
description: Each record represents a DEFERRED email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: attempt_number
description: The delivery attempt number.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: returned_response
description: The full response from the recipient's email server.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_delivered
description: Each record represents a DELIVERED email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: returned_response
description: The full response from the recipient's email server.
- name: smtp_id
description: An ID attached to the message by HubSpot.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_dropped
description: Each record represents a DROPPED email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: bcc_emails
description: The 'bcc' field of the email message.
- name: cc_emails
description: The 'cc' field of the email message.
- name: drop_message
description: The raw message describing why the email message was dropped. This will usually provide additional details beyond 'dropReason'.
- name: drop_reason
description: The reason why the email message was dropped. See below for the possible values.
- name: email_subject
description: The subject line of the email message.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: from_email
description: The 'from' field of the email message.
- name: reply_to_email
description: The 'reply-to' field of the email message.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_forward
description: Each record represents a FORWARD email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: browser
description: '{{ doc("email_event_browser") }}'
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: geo_location
description: '{{ doc("email_event_location") }}'
- name: ip_address
description: '{{ doc("email_event_ip_address") }}'
- name: user_agent
description: '{{ doc("email_event_user_agent") }}'
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_opens
description: Each record represents a OPEN email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: browser
description: '{{ doc("email_event_browser") }}'
- name: duration_open
description: If provided and nonzero, the approximate number of milliseconds the user had opened the email.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: geo_location
description: '{{ doc("email_event_location") }}'
- name: ip_address
description: '{{ doc("email_event_ip_address") }}'
- name: user_agent
description: '{{ doc("email_event_user_agent") }}'
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_print
description: Each record represents a PRINT email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: browser
description: '{{ doc("email_event_browser") }}'
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: geo_location
description: '{{ doc("email_event_location") }}'
- name: ip_address
description: '{{ doc("email_event_ip_address") }}'
- name: user_agent
description: '{{ doc("email_event_user_agent") }}'
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_sent
description: Each record represents a SENT email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: bcc_emails
description: The 'cc' field of the email message.
- name: cc_emails
description: The 'bcc' field of the email message.
- name: email_subject
description: The subject line of the email message.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: from_email
description: The 'from' field of the email message.
- name: reply_to_email
description: The 'reply-to' field of the email message.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_spam_report
description: Each record represents a SPAM_REPORT email event.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: ip_address
description: '{{ doc("email_event_ip_address") }}'
- name: user_agent
description: '{{ doc("email_event_user_agent") }}'
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.
- name: hubspot__email_event_status_change
description: Each record represents a STATUS_CHANGE email event in Hubspot.
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
- name: change_source
description: The source of the subscription change.
- name: event_id
description: The ID of the event.
tests:
- unique
- not_null
- name: is_bounced
description: |
A HubSpot employee explicitly initiated the status change to block messages to the recipient.
(Note this usage has been deprecated in favor of dropping messages with a 'dropReason' of BLOCKED_ADDRESS.)
- name: requested_by_email
description: The email address of the person requesting the change on behalf of the recipient. If not applicable, this property is omitted.
- name: subscription_status
description: |
The recipient's portal subscription status.
Note that if this is 'UNSUBSCRIBED', the property 'subscriptions' is not necessarily an empty array, nor are all
subscriptions contained in it necessarily going to have their statuses set to 'UNSUBSCRIBED'.)
- name: subscriptions
description: |
An array of JSON objects representing the status of subscriptions for the recipient.
Each JSON subscription object is comprised of the properties: 'id', 'status'.
- name: created_timestamp
description: The created timestamp of the event.
- name: email_campaign_id
description: The ID of the related email campaign.
- name: recipient_email_address
description: The email address of the contact related to the event.
- name: email_send_timestamp
description: The timestamp of the SENT event related to this event.
- name: email_send_id
description: The event ID which uniquely identifies the email message's SENT event. If not applicable, this property is omitted.
- name: contact_id
description: The ID of the related contact.