commit wip
This commit is contained in:
parent
4076f016bd
commit
d8a064fd06
2 changed files with 191 additions and 0 deletions
|
|
@ -3510,6 +3510,162 @@ models:
|
|||
min_value: 0
|
||||
max_value: 5
|
||||
strictly: false
|
||||
|
||||
- name: int_kpis__metric_weekly_check_in_attributed_guest_journeys
|
||||
description: |
|
||||
This model computes the Weekly metrics associated with Guest Journeys
|
||||
attributed to Check-In date at the deepest granularity.
|
||||
|
||||
The unique key corresponds to:
|
||||
- end_date,
|
||||
- id_deal,
|
||||
- has_payment,
|
||||
- has_id_check,
|
||||
- active_accommodations_per_deal_segmentation.
|
||||
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- end_date
|
||||
- id_deal
|
||||
- has_payment
|
||||
- has_id_check
|
||||
- active_accommodations_per_deal_segmentation
|
||||
|
||||
columns:
|
||||
- name: start_date
|
||||
data_type: date
|
||||
description: |
|
||||
The start date of the time range considered for the metrics in this record.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: end_date
|
||||
data_type: date
|
||||
description: |
|
||||
The end date of the time range considered for the metrics in this record.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: week
|
||||
data_type: int
|
||||
description: Week number of the given date.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
description: Unique identifier of an account.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: has_payment
|
||||
data_type: string
|
||||
description: Has there been any guest payments on the guest journey.
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- W/O Payment
|
||||
- With Payment
|
||||
|
||||
- name: has_id_check
|
||||
data_type: string
|
||||
description: Does the verification in the guest journey
|
||||
include Government Id Check for the bookings.
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- W/O Id Check
|
||||
- With Id Check
|
||||
|
||||
- name: active_accommodations_per_deal_segmentation
|
||||
data_type: text
|
||||
description: |
|
||||
Segment value based on the number of listings booked in 12 months
|
||||
for a given deal and date.
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- "0"
|
||||
- "01-05"
|
||||
- "06-20"
|
||||
- "21-60"
|
||||
- "61+"
|
||||
- "UNSET"
|
||||
|
||||
- name: main_billing_country_iso_3_per_deal
|
||||
data_type: character varying
|
||||
description: |
|
||||
Main billing country of the host aggregated at Deal level.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: created_guest_journeys_not_cancelled
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys created, excluding cancelled
|
||||
bookings, in a given date and per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: started_guest_journeys_not_cancelled
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys started, excluding cancelled
|
||||
bookings, in a given date and per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: completed_guest_journeys_not_cancelled
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys completed, excluding cancelled
|
||||
bookings, in a given date and per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: created_guest_journeys
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys created in a given date and
|
||||
per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: started_guest_journeys
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys started in a given date and
|
||||
per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: completed_guest_journeys
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of daily guest journeys completed in a given date and
|
||||
per specified dimension.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: count_csat_score
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated count of guest journeys with CSAT
|
||||
(customer satisfaction score) in a given date, dimension, and value.
|
||||
|
||||
- name: average_csat_score
|
||||
data_type: numeric
|
||||
description: |
|
||||
Weekly accumulated average CSAT score in a given date, dimension, and value.
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 5
|
||||
strictly: false
|
||||
|
||||
- name: int_kpis__metric_mtd_check_in_attributed_guest_journeys
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue