Skip to content

Commit 3eee84e

Browse files
Merge pull request #4 from fivetran/dev-jamie
docs update
2 parents 219fcfc + c9fd1d3 commit 3eee84e

File tree

3 files changed

+73
-5
lines changed

3 files changed

+73
-5
lines changed

models/src_pendo.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ sources:
3030
description: The timestamp (UTC) of when the account was last updated.
3131
- name: last_visit
3232
description: The timestamp (UTC) of when Pendo last recorded an event for the account.
33+
- name: _fivetran_synced
34+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
3335

3436
- name: application_history
3537
description: Table capturing changes to your tracked application(s).
@@ -98,6 +100,8 @@ sources:
98100
- name: store_url
99101
- name: subscription_id
100102
description: ID of the pendo subscription.
103+
- name: _fivetran_synced
104+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
101105

102106
- name: event
103107
description: Table capturing all recorded click and pageview events (tagged or untagged).
@@ -122,6 +126,8 @@ sources:
122126
description: String identifying the browser and operating system on which the event was triggered.
123127
- name: visitor_id
124128
description: Foreign key referencing the `VISITOR` who triggered the event.
129+
- name: _fivetran_synced
130+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
125131

126132
- name: feature_event
127133
description: Table capturing all recorded click events matching tagged features.
@@ -146,6 +152,8 @@ sources:
146152
description: String identifying the browser and operating system on which the event was triggered.
147153
- name: visitor_id
148154
description: Foreign key referencing the `VISITOR` who triggered the event.
155+
- name: _fivetran_synced
156+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
149157

150158
- name: feature_history
151159
description: Table capturing historical records of features in Pendo.
@@ -180,6 +188,8 @@ sources:
180188
description: The unique identifier for the current version of the feature.
181189
- name: valid_through
182190
description: Timestamp that indicates when data was last processed.
191+
- name: _fivetran_synced
192+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
183193

184194
- name: group
185195
description: Table capturing the product areas.
@@ -204,6 +214,8 @@ sources:
204214
description: The number of features/pages tagged under this product area. It's not entirely clear how this is calculated and should not be trusted 100%.
205215
- name: name
206216
description: Name of the product area.
217+
- name: _fivetran_synced
218+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
207219

208220
- name: guide_event
209221
description: Table capturing events related to guides. Each row is a unique event around `guideAdvanced`, `guideSeen`, `guideDismissed`, `guideSnoozed`, `guideTimeout`, `guideActivity`.
@@ -242,6 +254,8 @@ sources:
242254
description: String identifying the browser and operating system on which the event was triggered.
243255
- name: visitor_id
244256
description: Foreign key referencing the `VISITOR` who triggered the event.
257+
- name: _fivetran_synced
258+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
245259

246260
- name: guide_history
247261
description: Table capturing historical records of guides in pendo.
@@ -312,6 +326,8 @@ sources:
312326
description: The unique identifier for the current version of the feature.
313327
- name: state
314328
description: The current state of the guide. published, staged, draft, and disabled.
329+
- name: _fivetran_synced
330+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
315331

316332
- name: guide_step_history
317333
description: Table associating guides with the steps they include.
@@ -322,6 +338,8 @@ sources:
322338
description: Timestamp of when the guide was last updated.
323339
- name: step_id
324340
description: Foreign key referencing the `STEP` that the guide includes.
341+
- name: _fivetran_synced
342+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
325343

326344
- name: page_event
327345
description: Table capturing all recorded pageviews matching tagged pages.
@@ -350,6 +368,8 @@ sources:
350368
description: String identifying the browser and operating system on which the event was triggered.
351369
- name: visitor_id
352370
description: Foreign key referencing the `VISITOR` who triggered the event.
371+
- name: _fivetran_synced
372+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
353373

354374
- name: page_history
355375
description: Table capturing the historical records of pages tagged in Pendo.
@@ -380,6 +400,8 @@ sources:
380400
description: The unique identifier for the current version of the page.
381401
- name: valid_through
382402
description: Timestamp that indicates when data was last processed.
403+
- name: _fivetran_synced
404+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
383405

384406
- name: page_rule_history
385407
description: Table capturing historical records of rules associated with pages.
@@ -394,6 +416,8 @@ sources:
394416
description: The url rule of the page, completely parsed out.
395417
- name: rule
396418
description: Bare-bones URL rule of the page.
419+
- name: _fivetran_synced
420+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
397421

398422
- name: user
399423
description: Table capturing internal Pendo users.
@@ -412,6 +436,8 @@ sources:
412436
description: Type of user.
413437
- name: username
414438
description: Username of the user, typically their email.
439+
- name: _fivetran_synced
440+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
415441

416442
- name: visitor_history
417443
description: Table capturing historical records of visitors.
@@ -442,6 +468,8 @@ sources:
442468
description: Timestamp of the user's last visit.
443469
- name: n_id
444470
description: Numeric id for the visitor.
471+
- name: _fivetran_synced
472+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
445473

446474
- name: poll
447475
description: Table capturing polls administered via Pendo.
@@ -461,6 +489,8 @@ sources:
461489
description: The content of the poll question.
462490
- name: reset_at
463491
description: The timestamp when the poll's data was last reset.
492+
- name: _fivetran_synced
493+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
464494

465495
- name: poll_event
466496
description: Table capturing individual responses to polls.
@@ -505,6 +535,8 @@ sources:
505535
description: String identifying the browser and operating system on which the event was triggered.
506536
- name: visitor_id
507537
description: Foreign key referencing the `VISITOR` who triggered the event.
538+
- name: _fivetran_synced
539+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
508540

509541
- name: visitor_account_history
510542
description: >
@@ -516,4 +548,6 @@ sources:
516548
- name: visitor_id
517549
description: Foreign key referencing the `VISITOR` associated with the account.
518550
- name: visitor_last_updated_at
519-
description: Timestamp of when the visitor was last updated.
551+
description: Timestamp of when the visitor was last updated.
552+
- name: _fivetran_synced
553+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.

models/stg_pendo.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ models:
2222
description: The timestamp (UTC) of when the account was last updated.
2323
- name: last_visit_at
2424
description: The timestamp (UTC) of when Pendo last recorded an event for the account.
25+
- name: _fivetran_synced
26+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
2527

2628
- name: stg_pendo__application_history
2729
description: Table capturing changes to your tracked application(s).
@@ -63,13 +65,14 @@ models:
6365
description: Timestamp of when the app was last updated.
6466
- name: last_updated_by_user_id
6567
description: Foreign key referencing the `USER` who last updated the app.
66-
- name: marked_for_deletion_at
67-
description: Timestamp of when the app was marked for deletion, if at all.
6868
- name: application_name
6969
description: Title of the application.
7070
- name: platform
7171
description: Platform on which the application is served.
7272
- name: subscription_id
73+
description: ID of the app's Pendo subscription.
74+
- name: _fivetran_synced
75+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
7376

7477
- name: stg_pendo__event
7578
description: >
@@ -101,6 +104,8 @@ models:
101104
tests:
102105
- unique
103106
- not_null
107+
- name: _fivetran_synced
108+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
104109

105110
- name: stg_pendo__feature_event
106111
description: >
@@ -132,6 +137,8 @@ models:
132137
tests:
133138
- unique
134139
- not_null
140+
- name: _fivetran_synced
141+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
135142

136143
- name: stg_pendo__feature_history
137144
description: Table capturing historical records of features in Pendo.
@@ -169,6 +176,8 @@ models:
169176
description: The unique identifier for the current version of the feature.
170177
- name: valid_through
171178
description: Timestamp that indicates when data was last processed.
179+
- name: _fivetran_synced
180+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
172181

173182
- name: stg_pendo__group
174183
description: Table capturing the product areas (groups) that pages and features can be tagged with.
@@ -192,6 +201,8 @@ models:
192201
description: Foreign key referencing the `USER` who last updated the product area.
193202
- name: group_name
194203
description: Name of the product area.
204+
- name: _fivetran_synced
205+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
195206

196207
- name: stg_pendo__guide_event
197208
description: Table capturing events related to guides. Each row is a unique event around `guideAdvanced`, `guideSeen`, `guideDismissed`, `guideSnoozed`, `guideTimeout`, `guideActivity`.
@@ -231,6 +242,8 @@ models:
231242
tests:
232243
- unique
233244
- not_null
245+
- name: _fivetran_synced
246+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
234247

235248
- name: stg_pendo__guide_history
236249
description: Table capturing historical records of guides in pendo.
@@ -276,6 +289,8 @@ models:
276289
description: The unique identifier for the current version of the guide.
277290
- name: state
278291
description: The current state of the guide. published, staged, draft, and disabled.
292+
- name: _fivetran_synced
293+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
279294

280295
- name: stg_pendo__guide_step_history
281296
description: Table associating guides with the steps they include.
@@ -292,6 +307,8 @@ models:
292307
description: Timestamp of when the guide was last updated.
293308
- name: step_id
294309
description: Foreign key referencing the `STEP` that the guide includes.
310+
- name: _fivetran_synced
311+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
295312

296313
- name: stg_pendo__page_event
297314
description: >
@@ -327,6 +344,8 @@ models:
327344
tests:
328345
- unique
329346
- not_null
347+
- name: _fivetran_synced
348+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
330349

331350
- name: stg_pendo__page_history
332351
description: Table capturing the historical records of pages tagged in Pendo.
@@ -360,6 +379,8 @@ models:
360379
description: The unique identifier for the current version of the page.
361380
- name: valid_through
362381
description: Timestamp that indicates when data was last processed.
382+
- name: _fivetran_synced
383+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
363384

364385
- name: stg_pendo__page_rule_history
365386
description: Table capturing historical records of rules associated with pages.
@@ -380,6 +401,8 @@ models:
380401
description: The url rule of the page, completely parsed out.
381402
- name: rule
382403
description: Bare-bones URL rule of the page.
404+
- name: _fivetran_synced
405+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
383406

384407
- name: stg_pendo__user
385408
description: Table capturing internal Pendo users.
@@ -399,6 +422,8 @@ models:
399422
description: Type of user.
400423
- name: username
401424
description: Username of the user, typically their email.
425+
- name: _fivetran_synced
426+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
402427

403428
- name: stg_pendo__visitor_history
404429
description: Table capturing historical records of visitors.
@@ -434,6 +459,8 @@ models:
434459
description: Timestamp of the user's last visit.
435460
- name: n_id
436461
description: Numeric id for the visitor.
462+
- name: _fivetran_synced
463+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
437464

438465
- name: stg_pendo__poll
439466
description: Table capturing polls administered via Pendo.
@@ -455,6 +482,8 @@ models:
455482
description: The content of the poll question.
456483
- name: reset_at
457484
description: The timestamp when the poll's data was last reset.
485+
- name: _fivetran_synced
486+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
458487

459488
- name: stg_pendo__poll_event
460489
description: Table capturing individual responses to polls.
@@ -500,6 +529,8 @@ models:
500529
tests:
501530
- unique
502531
- not_null
532+
- name: _fivetran_synced
533+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.
503534

504535
- name: stg_pendo__visitor_account_history
505536
description: >
@@ -517,4 +548,6 @@ models:
517548
- name: visitor_id
518549
description: Foreign key referencing the `VISITOR` associated with the account.
519550
- name: visitor_last_updated_at
520-
description: Timestamp of when the visitor was last updated.
551+
description: Timestamp of when the visitor was last updated.
552+
- name: _fivetran_synced
553+
description: UTC timestamp that indicates the time when Fivetran last successfully synced the row.

models/stg_pendo__account_history.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ final as (
2626
last_updated_at,
2727
id_hash as account_id_hash,
2828
first_visit as first_visit_at,
29-
last_visit as last_visit_at
29+
last_visit as last_visit_at,
30+
_fivetran_synced
3031

3132
--The below macro adds the fields defined within your pendo__account_history_pass_through_columns variable into the staging model
3233
{{ fivetran_utils.fill_pass_through_columns('pendo__account_history_pass_through_columns') }}

0 commit comments

Comments
 (0)