Skip to content

Commit

Permalink
Add new test metric, measure, and dimension
Browse files Browse the repository at this point in the history
And update snapshots accordingly
  • Loading branch information
courtneyholcomb committed Aug 28, 2024
1 parent 5de5474 commit 2c25d8a
Show file tree
Hide file tree
Showing 97 changed files with 4,458 additions and 3,842 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ semantic_model:
window_groupings:
- user

- name: total_account_balance_first_day_of_month
agg: sum
expr: account_balance
agg_time_dimension: ds_month
non_additive_dimension:
name: ds_month
window_choice: min
create_metric: true

dimensions:
- name: ds
type: time
type_params:
time_granularity: day
- name: ds_month
type: time
expr: DATE_TRUNC(ds, 'month')
type_params:
time_granularity: month
- name: account_type
type: categorical

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
'user__account__user__current_account_balance_by_user',
'user__account__user__regional_starting_balance_ratios',
'user__account__user__total_account_balance_first_day',
'user__account__user__total_account_balance_first_day_of_month',
'user__active_listings',
'user__archived_at__day',
'user__archived_at__extract_day',
Expand Down Expand Up @@ -461,6 +462,7 @@
'user__smallest_listing',
'user__subdaily_join_to_time_spine_metric',
'user__total_account_balance_first_day',
'user__total_account_balance_first_day_of_month',
'user__verification__user__identity_verifications',
'user__view__user__views',
'user__views',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'created_at',
'ds',
'ds_latest',
'ds_month',
'ds_partitioned',
'home_state',
'home_state_latest',
Expand Down Expand Up @@ -46,6 +47,7 @@
'referred_bookings',
'smallest_listing',
'total_account_balance_first_day',
'total_account_balance_first_day_of_month',
'txn_revenue',
'views',
'visitors',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Model Join-Path Entity Links
('listings_latest',) ("('user',)", "('account', 'user')") current_account_balance_by_user ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('account', 'user')") regional_starting_balance_ratios ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('account', 'user')") total_account_balance_first_day ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('account', 'user')") total_account_balance_first_day_of_month ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('listing', 'user')") active_listings ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('listing', 'user')") approximate_continuous_booking_value_p99 ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('listing', 'user')") approximate_discrete_booking_value_p99 ['JOINED', 'METRIC']
Expand Down Expand Up @@ -193,6 +194,7 @@ Model Join-Path Entity Links
('listings_latest',) ("('user',)", "('user',)") smallest_listing ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") subdaily_join_to_time_spine_metric ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") total_account_balance_first_day ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") total_account_balance_first_day_of_month ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") views ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") visit_buy_conversion_rate ['JOINED', 'METRIC']
('listings_latest',) ("('user',)", "('user',)") visit_buy_conversion_rate_7days ['JOINED', 'METRIC']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
'account__ds__extract_month',
'account__ds__extract_quarter',
'account__ds__extract_year',
'account__ds_month__extract_month',
'account__ds_month__extract_quarter',
'account__ds_month__extract_year',
'account__ds_month__month',
'account__user',
'booking__ds__day',
'booking__ds__extract_day',
Expand Down Expand Up @@ -104,6 +108,7 @@
'company__user__company__smallest_listing',
'company__user__company__subdaily_join_to_time_spine_metric',
'company__user__company__total_account_balance_first_day',
'company__user__company__total_account_balance_first_day_of_month',
'company__user__company__views',
'company__user__company__visit_buy_conversion_rate',
'company__user__company__visit_buy_conversion_rate_7days',
Expand Down Expand Up @@ -448,6 +453,7 @@
'user__account__user__current_account_balance_by_user',
'user__account__user__regional_starting_balance_ratios',
'user__account__user__total_account_balance_first_day',
'user__account__user__total_account_balance_first_day_of_month',
'user__active_listings',
'user__archived_at__extract_day',
'user__archived_at__extract_dow',
Expand Down Expand Up @@ -577,6 +583,7 @@
'user__smallest_listing',
'user__subdaily_join_to_time_spine_metric',
'user__total_account_balance_first_day',
'user__total_account_balance_first_day_of_month',
'user__verification__user__identity_verifications',
'user__view__user__views',
'user__views',
Expand Down
Loading

0 comments on commit 2c25d8a

Please sign in to comment.