|
| 1 | +test_name: test_invalid_metric |
| 2 | +test_filename: test_sg_resolver_output.py |
| 3 | +docstring: |
| 4 | + Check the exception associated with an invalid metric name. |
| 5 | +--- |
| 6 | +The given name is not valid. Please check that it matches one specified in the manifest. |
| 7 | + element_name: invalid_metric |
| 8 | + label: MetricLabel(metric_name='invalid_metric') |
| 9 | + associated_references: {MetricReference(element_name='invalid_metric')} |
| 10 | + matching_nodes: {} |
| 11 | + measure_nodes: |
| 12 | + { |
| 13 | + Measure(identity_verifications), |
| 14 | + Measure(visits), |
| 15 | + Measure(visitors), |
| 16 | + Measure(views), |
| 17 | + Measure(bookings), |
| 18 | + Measure(instant_bookings), |
| 19 | + Measure(booking_value), |
| 20 | + Measure(max_booking_value), |
| 21 | + Measure(min_booking_value), |
| 22 | + Measure(bookers), |
| 23 | + Measure(average_booking_value), |
| 24 | + Measure(referred_bookings), |
| 25 | + Measure(median_booking_value), |
| 26 | + Measure(booking_value_p99), |
| 27 | + Measure(discrete_booking_value_p99), |
| 28 | + Measure(approximate_continuous_booking_value_p99), |
| 29 | + Measure(approximate_discrete_booking_value_p99), |
| 30 | + Measure(booking_payments), |
| 31 | + Measure(account_balance), |
| 32 | + Measure(total_account_balance_first_day), |
| 33 | + Measure(current_account_balance_by_user), |
| 34 | + Measure(total_account_balance_first_day_of_month), |
| 35 | + Measure(new_users), |
| 36 | + Measure(archived_users), |
| 37 | + Measure(buys), |
| 38 | + Measure(buyers), |
| 39 | + Measure(buys_month), |
| 40 | + Measure(txn_revenue), |
| 41 | + Measure(listings), |
| 42 | + Measure(largest_listing), |
| 43 | + Measure(smallest_listing), |
| 44 | + } |
| 45 | + metric_nodes: |
| 46 | + { |
| 47 | + BaseMetric(bookings), |
| 48 | + BaseMetric(average_booking_value), |
| 49 | + BaseMetric(instant_bookings), |
| 50 | + BaseMetric(booking_value), |
| 51 | + BaseMetric(max_booking_value), |
| 52 | + BaseMetric(min_booking_value), |
| 53 | + BaseMetric(instant_booking_value), |
| 54 | + BaseMetric(average_instant_booking_value), |
| 55 | + BaseMetric(booking_value_for_non_null_listing_id), |
| 56 | + BaseMetric(bookers), |
| 57 | + BaseMetric(booking_payments), |
| 58 | + BaseMetric(views), |
| 59 | + BaseMetric(listings), |
| 60 | + BaseMetric(lux_listings), |
| 61 | + BaseMetric(smallest_listing), |
| 62 | + BaseMetric(largest_listing), |
| 63 | + BaseMetric(identity_verifications), |
| 64 | + BaseMetric(revenue), |
| 65 | + BaseMetric(trailing_2_months_revenue), |
| 66 | + BaseMetric(revenue_all_time), |
| 67 | + BaseMetric(every_two_days_bookers), |
| 68 | + BaseMetric(revenue_mtd), |
| 69 | + DerivedMetric(booking_fees), |
| 70 | + DerivedMetric(booking_fees_per_booker), |
| 71 | + DerivedMetric(booking_fees_last_week_per_booker_this_week), |
| 72 | + DerivedMetric(views_times_booking_value), |
| 73 | + DerivedMetric(bookings_per_booker), |
| 74 | + DerivedMetric(bookings_per_view), |
| 75 | + DerivedMetric(bookings_per_listing), |
| 76 | + DerivedMetric(bookings_per_dollar), |
| 77 | + BaseMetric(total_account_balance_first_day), |
| 78 | + BaseMetric(current_account_balance_by_user), |
| 79 | + DerivedMetric(instant_booking_fraction_of_max_value), |
| 80 | + DerivedMetric(lux_booking_fraction_of_max_value), |
| 81 | + DerivedMetric(lux_booking_value_rate_expr), |
| 82 | + DerivedMetric(instant_booking_value_ratio), |
| 83 | + DerivedMetric(instant_lux_booking_value_rate), |
| 84 | + DerivedMetric(regional_starting_balance_ratios), |
| 85 | + DerivedMetric(double_counted_delayed_bookings), |
| 86 | + BaseMetric(referred_bookings), |
| 87 | + DerivedMetric(non_referred_bookings_pct), |
| 88 | + DerivedMetric(booking_value_sub_instant), |
| 89 | + DerivedMetric(booking_value_sub_instant_add_10), |
| 90 | + DerivedMetric(bookings_per_lux_listing_derived), |
| 91 | + DerivedMetric(instant_plus_non_referred_bookings_pct), |
| 92 | + DerivedMetric(trailing_2_months_revenue_sub_10), |
| 93 | + DerivedMetric(booking_value_per_view), |
| 94 | + BaseMetric(median_booking_value), |
| 95 | + BaseMetric(booking_value_p99), |
| 96 | + BaseMetric(discrete_booking_value_p99), |
| 97 | + BaseMetric(approximate_continuous_booking_value_p99), |
| 98 | + BaseMetric(approximate_discrete_booking_value_p99), |
| 99 | + DerivedMetric(bookings_growth_2_weeks), |
| 100 | + BaseMetric(bookings_all_time), |
| 101 | + DerivedMetric(bookings_all_time_at_start_of_month), |
| 102 | + DerivedMetric(bookings_growth_since_start_of_month), |
| 103 | + DerivedMetric(bookings_since_start_of_month), |
| 104 | + DerivedMetric(bookings_month_start_compared_to_1_month_prior), |
| 105 | + DerivedMetric(bookings_5_day_lag), |
| 106 | + DerivedMetric(every_2_days_bookers_2_days_ago), |
| 107 | + BaseMetric(bookings_join_to_time_spine), |
| 108 | + BaseMetric(visit_buy_conversion_rate_7days), |
| 109 | + BaseMetric(visit_buy_conversion_rate), |
| 110 | + BaseMetric(visit_buy_conversions), |
| 111 | + BaseMetric(visit_buy_conversion_rate_with_monthly_conversion), |
| 112 | + BaseMetric(visit_buy_conversion_rate_by_session), |
| 113 | + BaseMetric(bookings_fill_nulls_with_0_without_time_spine), |
| 114 | + BaseMetric(bookings_fill_nulls_with_0), |
| 115 | + BaseMetric(instant_bookings_with_measure_filter), |
| 116 | + BaseMetric(bookings_join_to_time_spine_with_tiered_filters), |
| 117 | + BaseMetric(every_two_days_bookers_fill_nulls_with_0), |
| 118 | + DerivedMetric(bookings_growth_2_weeks_fill_nulls_with_0), |
| 119 | + DerivedMetric(bookings_growth_2_weeks_fill_nulls_with_0_for_non_offset), |
| 120 | + DerivedMetric(bookings_offset_once), |
| 121 | + DerivedMetric(bookings_offset_twice), |
| 122 | + DerivedMetric(bookings_offset_alien_day), |
| 123 | + DerivedMetric(bookings_at_start_of_month), |
| 124 | + DerivedMetric(booking_fees_since_start_of_month), |
| 125 | + DerivedMetric(bookings_1_month_ago), |
| 126 | + DerivedMetric(bookings_mom), |
| 127 | + DerivedMetric(derived_bookings_0), |
| 128 | + DerivedMetric(derived_bookings_1), |
| 129 | + DerivedMetric(twice_bookings_fill_nulls_with_0_without_time_spine), |
| 130 | + DerivedMetric(nested_fill_nulls_without_time_spine), |
| 131 | + BaseMetric(visit_buy_conversion_rate_7days_fill_nulls_with_0), |
| 132 | + BaseMetric(active_listings), |
| 133 | + DerivedMetric(popular_listing_bookings_per_booker), |
| 134 | + DerivedMetric(derived_shared_alias_1a), |
| 135 | + DerivedMetric(derived_shared_alias_1b), |
| 136 | + DerivedMetric(derived_shared_alias_2), |
| 137 | + DerivedMetric(bookings_offset_one_alien_day), |
| 138 | + DerivedMetric(bookings_alien_day_over_alien_day), |
| 139 | + BaseMetric(trailing_7_days_bookings), |
| 140 | + DerivedMetric(trailing_7_days_bookings_offset_1_week), |
| 141 | + BaseMetric(subdaily_cumulative_window_metric), |
| 142 | + BaseMetric(subdaily_cumulative_grain_to_date_metric), |
| 143 | + BaseMetric(archived_users), |
| 144 | + DerivedMetric(subdaily_offset_window_metric), |
| 145 | + DerivedMetric(subdaily_offset_grain_to_date_metric), |
| 146 | + BaseMetric(subdaily_join_to_time_spine_metric), |
| 147 | + BaseMetric(simple_subdaily_metric_default_day), |
| 148 | + BaseMetric(simple_subdaily_metric_default_hour), |
| 149 | + BaseMetric(archived_users_join_to_time_spine), |
| 150 | + BaseMetric(total_account_balance_first_day_of_month), |
| 151 | + BaseMetric(new_users), |
| 152 | + } |
0 commit comments