зеркало из https://github.com/mozilla/looker-hub.git
Auto-push from LookML generation
This commit is contained in:
Родитель
5cd5ca88c6
Коммит
781eacd511
|
@ -13187,7 +13187,7 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
sql: ${TABLE}.key ;;
|
||||
suggest_explore: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko
|
||||
suggest_dimension: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko.key
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
dimension: value {
|
||||
|
@ -13199,13 +13199,13 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
measure: count {
|
||||
type: sum
|
||||
sql: ${value} ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
measure: client_count {
|
||||
type: count_distinct
|
||||
sql: case when ${value} > 0 then ${metrics.client_info__client_id} end ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5925,7 +5925,7 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
sql: ${TABLE}.key ;;
|
||||
suggest_explore: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko
|
||||
suggest_dimension: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko.key
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
dimension: value {
|
||||
|
@ -5937,13 +5937,13 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
measure: count {
|
||||
type: sum
|
||||
sql: ${value} ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
measure: client_count {
|
||||
type: count_distinct
|
||||
sql: case when ${value} > 0 then ${metrics.client_info__client_id} end ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4985,7 +4985,7 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
sql: ${TABLE}.key ;;
|
||||
suggest_explore: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko
|
||||
suggest_dimension: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko.key
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
dimension: value {
|
||||
|
@ -4997,13 +4997,13 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
measure: count {
|
||||
type: sum
|
||||
sql: ${value} ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
measure: client_count {
|
||||
type: count_distinct
|
||||
sql: case when ${value} > 0 then ${metrics.client_info__client_id} end ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6305,7 +6305,7 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
sql: ${TABLE}.key ;;
|
||||
suggest_explore: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko
|
||||
suggest_dimension: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko.key
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
dimension: value {
|
||||
|
@ -6317,13 +6317,13 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
measure: count {
|
||||
type: sum
|
||||
sql: ${value} ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
measure: client_count {
|
||||
type: count_distinct
|
||||
sql: case when ${value} > 0 then ${metrics.client_info__client_id} end ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6328,7 +6328,7 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
sql: ${TABLE}.key ;;
|
||||
suggest_explore: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko
|
||||
suggest_dimension: suggest__metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_gecko.key
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
dimension: value {
|
||||
|
@ -6340,13 +6340,13 @@ view: metrics__metrics__labeled_counter__fog_validation_gvsv_audio_stream_init_g
|
|||
measure: count {
|
||||
type: sum
|
||||
sql: ${value} ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
|
||||
measure: client_count {
|
||||
type: count_distinct
|
||||
sql: case when ${value} > 0 then ${metrics.client_info__client_id} end ;;
|
||||
hidden: no
|
||||
hidden: yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,56 +8,67 @@ view: acoustic_contact_current_snapshot {
|
|||
dimension: basket_token {
|
||||
sql: ${TABLE}.basket_token ;;
|
||||
type: string
|
||||
description: "token generated for unsubscribe and email\ preference center links; this was called token__c in SFMC"
|
||||
}
|
||||
|
||||
dimension: cohort {
|
||||
sql: ${TABLE}.cohort ;;
|
||||
type: string
|
||||
description: "stores values for automation testing"
|
||||
}
|
||||
|
||||
dimension: double_opt_in {
|
||||
sql: ${TABLE}.double_opt_in ;;
|
||||
type: yesno
|
||||
description: "TRUE = double opted-in FALSE = not opted-in."
|
||||
}
|
||||
|
||||
dimension: email_format {
|
||||
sql: ${TABLE}.email_format ;;
|
||||
type: string
|
||||
description: "preferred email format - values are H for HTML or T for\ Text and sometimes this field is blank for a contact"
|
||||
}
|
||||
|
||||
dimension: email_id {
|
||||
sql: ${TABLE}.email_id ;;
|
||||
type: string
|
||||
description: "key to connect to rt_newsletters\ and rt_mofo_contact relational databases"
|
||||
}
|
||||
|
||||
dimension: email_lang {
|
||||
sql: ${TABLE}.email_lang ;;
|
||||
type: string
|
||||
description: "preferred email language"
|
||||
}
|
||||
|
||||
dimension: fxa_account_deleted {
|
||||
sql: ${TABLE}.fxa_account_deleted ;;
|
||||
type: yesno
|
||||
description: "has the fxa account been deleted?"
|
||||
}
|
||||
|
||||
dimension: fxa_first_service {
|
||||
sql: ${TABLE}.fxa_first_service ;;
|
||||
type: string
|
||||
description: "the first service added to the Firefox account"
|
||||
}
|
||||
|
||||
dimension: fxa_id {
|
||||
sql: ${TABLE}.fxa_id ;;
|
||||
type: string
|
||||
description: "key to connect to rt_moco_fxa_service relational database"
|
||||
}
|
||||
|
||||
dimension: has_opted_out_of_email {
|
||||
sql: ${TABLE}.has_opted_out_of_email ;;
|
||||
type: yesno
|
||||
description: "TRUE = has opted-out (exclude them from email sends)\ FALSE = can send emails"
|
||||
}
|
||||
|
||||
dimension: mailing_country {
|
||||
sql: ${TABLE}.mailing_country ;;
|
||||
type: string
|
||||
description: "subscriber's country"
|
||||
}
|
||||
|
||||
dimension: recipient_id {
|
||||
|
@ -68,56 +79,67 @@ view: acoustic_contact_current_snapshot {
|
|||
dimension: relay_waitlist_geo {
|
||||
sql: ${TABLE}.relay_waitlist_geo ;;
|
||||
type: string
|
||||
description: "Relay waitlist country location"
|
||||
}
|
||||
|
||||
dimension: sfdc_id {
|
||||
sql: ${TABLE}.sfdc_id ;;
|
||||
type: string
|
||||
description: "key to connect to rt_mofo_campaign_member\ and rt_mofo_opportunity relational databases"
|
||||
}
|
||||
|
||||
dimension: sub_about_mozilla {
|
||||
sql: ${TABLE}.sub_about_mozilla ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Community"
|
||||
}
|
||||
|
||||
dimension: sub_apps_and_hacks {
|
||||
sql: ${TABLE}.sub_apps_and_hacks ;;
|
||||
type: yesno
|
||||
description: "subscribed to Developer newsletter"
|
||||
}
|
||||
|
||||
dimension: sub_common_voice {
|
||||
sql: ${TABLE}.sub_common_voice ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Common Voice"
|
||||
}
|
||||
|
||||
dimension: sub_firefox_accounts_journey {
|
||||
sql: ${TABLE}.sub_firefox_accounts_journey ;;
|
||||
type: yesno
|
||||
description: "subscribed to Firefox Account Tips"
|
||||
}
|
||||
|
||||
dimension: sub_firefox_news {
|
||||
sql: ${TABLE}.sub_firefox_news ;;
|
||||
type: yesno
|
||||
description: "subscribed to Firefox News"
|
||||
}
|
||||
|
||||
dimension: sub_firefox_sweepstakes {
|
||||
sql: ${TABLE}.sub_firefox_sweepstakes ;;
|
||||
type: yesno
|
||||
description: "subscribed to Firefox Sweepstakes"
|
||||
}
|
||||
|
||||
dimension: sub_hubs {
|
||||
sql: ${TABLE}.sub_hubs ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Hubs"
|
||||
}
|
||||
|
||||
dimension: sub_internet_health_report {
|
||||
sql: ${TABLE}.sub_internet_health_report ;;
|
||||
type: yesno
|
||||
description: "subscribed to Insights"
|
||||
}
|
||||
|
||||
dimension: sub_knowledge_is_power {
|
||||
sql: ${TABLE}.sub_knowledge_is_power ;;
|
||||
type: yesno
|
||||
description: "subscribed to Knowledge is Power"
|
||||
}
|
||||
|
||||
dimension: sub_miti {
|
||||
|
@ -128,56 +150,67 @@ view: acoustic_contact_current_snapshot {
|
|||
dimension: sub_mixed_reality {
|
||||
sql: ${TABLE}.sub_mixed_reality ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mixed Reality"
|
||||
}
|
||||
|
||||
dimension: sub_mozilla_fellowship_awardee_alumni {
|
||||
sql: ${TABLE}.sub_mozilla_fellowship_awardee_alumni ;;
|
||||
type: yesno
|
||||
description: "subscribed to Fellowship and Awardee Alumni"
|
||||
}
|
||||
|
||||
dimension: sub_mozilla_festival {
|
||||
sql: ${TABLE}.sub_mozilla_festival ;;
|
||||
type: yesno
|
||||
description: "subscribed to MozFest"
|
||||
}
|
||||
|
||||
dimension: sub_mozilla_foundation {
|
||||
sql: ${TABLE}.sub_mozilla_foundation ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Foundation"
|
||||
}
|
||||
|
||||
dimension: sub_mozilla_technology {
|
||||
sql: ${TABLE}.sub_mozilla_technology ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Technology"
|
||||
}
|
||||
|
||||
dimension: sub_mozillians_nda {
|
||||
sql: ${TABLE}.sub_mozillians_nda ;;
|
||||
type: yesno
|
||||
description: "NDA'd Mozillians"
|
||||
}
|
||||
|
||||
dimension: sub_rally {
|
||||
sql: ${TABLE}.sub_rally ;;
|
||||
type: yesno
|
||||
description: "subscribed to Mozilla Rally"
|
||||
}
|
||||
|
||||
dimension: sub_take_action_for_the_internet {
|
||||
sql: ${TABLE}.sub_take_action_for_the_internet ;;
|
||||
type: yesno
|
||||
description: "subscribed to Take Action for the Internet"
|
||||
}
|
||||
|
||||
dimension: sub_test_pilot {
|
||||
sql: ${TABLE}.sub_test_pilot ;;
|
||||
type: yesno
|
||||
description: "subscribed to New Product Testing"
|
||||
}
|
||||
|
||||
dimension: vpn_waitlist_geo {
|
||||
sql: ${TABLE}.vpn_waitlist_geo ;;
|
||||
type: string
|
||||
description: "VPN waitlist country location"
|
||||
}
|
||||
|
||||
dimension: vpn_waitlist_platform {
|
||||
sql: ${TABLE}.vpn_waitlist_platform ;;
|
||||
hidden: yes
|
||||
description: "VPN waitlist platform name"
|
||||
}
|
||||
|
||||
dimension_group: date_created {
|
||||
|
@ -193,6 +226,7 @@ view: acoustic_contact_current_snapshot {
|
|||
]
|
||||
convert_tz: no
|
||||
datatype: date
|
||||
description: "Date when the contact was created"
|
||||
}
|
||||
|
||||
dimension_group: fxa_created {
|
||||
|
@ -208,6 +242,7 @@ view: acoustic_contact_current_snapshot {
|
|||
]
|
||||
convert_tz: no
|
||||
datatype: date
|
||||
description: "records the date/time a subscriber created a Firefox account"
|
||||
}
|
||||
|
||||
dimension_group: last_modified {
|
||||
|
@ -223,6 +258,7 @@ view: acoustic_contact_current_snapshot {
|
|||
]
|
||||
convert_tz: no
|
||||
datatype: date
|
||||
description: "Correspnds to Airflow's exec date. \ Means when at the time the job run, that was \ most recently when the contact was updated."
|
||||
}
|
||||
|
||||
sql_table_name: `moz-fx-data-marketing-prod.acoustic.contact_current_snapshot_v1` ;;
|
||||
|
|
|
@ -20,11 +20,30 @@ view: airflow_trigger {
|
|||
type: string
|
||||
}
|
||||
|
||||
dimension: trigger_id {
|
||||
sql: ${TABLE}.trigger_id ;;
|
||||
type: number
|
||||
}
|
||||
|
||||
dimension: triggerer_id {
|
||||
sql: ${TABLE}.triggerer_id ;;
|
||||
type: number
|
||||
}
|
||||
|
||||
dimension_group: created_at {
|
||||
sql: ${TABLE}.created_at ;;
|
||||
type: time
|
||||
timeframes: [
|
||||
raw,
|
||||
time,
|
||||
date,
|
||||
week,
|
||||
month,
|
||||
quarter,
|
||||
year,
|
||||
]
|
||||
}
|
||||
|
||||
dimension_group: created {
|
||||
sql: ${TABLE}.created_date ;;
|
||||
type: time
|
||||
|
|
|
@ -26,16 +26,6 @@ view: event_monitoring_live {
|
|||
type: string
|
||||
}
|
||||
|
||||
dimension: experiment {
|
||||
sql: ${TABLE}.experiment ;;
|
||||
type: string
|
||||
}
|
||||
|
||||
dimension: experiment_branch {
|
||||
sql: ${TABLE}.experiment_branch ;;
|
||||
type: string
|
||||
}
|
||||
|
||||
dimension: normalized_app_name {
|
||||
sql: ${TABLE}.normalized_app_name ;;
|
||||
type: string
|
||||
|
|
|
@ -5,6 +5,27 @@
|
|||
# You can extend this view in the looker-spoke-default project (https://github.com/mozilla/looker-spoke-default)
|
||||
|
||||
view: subscriptions_table {
|
||||
dimension: apple_receipt__active_period__interval {
|
||||
sql: ${TABLE}.apple_receipt.active_period.interval ;;
|
||||
type: string
|
||||
group_label: "Apple Receipt Active Period"
|
||||
group_item_label: "Interval"
|
||||
}
|
||||
|
||||
dimension: apple_receipt__active_period__interval_count {
|
||||
sql: ${TABLE}.apple_receipt.active_period.interval_count ;;
|
||||
type: number
|
||||
group_label: "Apple Receipt Active Period"
|
||||
group_item_label: "Interval Count"
|
||||
}
|
||||
|
||||
dimension: apple_receipt__environment {
|
||||
sql: ${TABLE}.apple_receipt.environment ;;
|
||||
type: string
|
||||
group_label: "Apple Receipt"
|
||||
group_item_label: "Environment"
|
||||
}
|
||||
|
||||
dimension: id {
|
||||
sql: ${TABLE}.id ;;
|
||||
type: number
|
||||
|
@ -15,6 +36,11 @@ view: subscriptions_table {
|
|||
type: yesno
|
||||
}
|
||||
|
||||
dimension: provider {
|
||||
sql: ${TABLE}.provider ;;
|
||||
type: string
|
||||
}
|
||||
|
||||
dimension: type {
|
||||
sql: ${TABLE}.type ;;
|
||||
type: string
|
||||
|
@ -25,6 +51,66 @@ view: subscriptions_table {
|
|||
type: number
|
||||
}
|
||||
|
||||
dimension_group: apple_receipt__active_period__end {
|
||||
sql: ${TABLE}.apple_receipt.active_period.end_time ;;
|
||||
type: time
|
||||
timeframes: [
|
||||
raw,
|
||||
time,
|
||||
date,
|
||||
week,
|
||||
month,
|
||||
quarter,
|
||||
year,
|
||||
]
|
||||
label: "Apple Receipt Active Period: End Time"
|
||||
}
|
||||
|
||||
dimension_group: apple_receipt__active_period__start {
|
||||
sql: ${TABLE}.apple_receipt.active_period.start_time ;;
|
||||
type: time
|
||||
timeframes: [
|
||||
raw,
|
||||
time,
|
||||
date,
|
||||
week,
|
||||
month,
|
||||
quarter,
|
||||
year,
|
||||
]
|
||||
label: "Apple Receipt Active Period: Start Time"
|
||||
}
|
||||
|
||||
dimension_group: apple_receipt__trial_period__end {
|
||||
sql: ${TABLE}.apple_receipt.trial_period.end_time ;;
|
||||
type: time
|
||||
timeframes: [
|
||||
raw,
|
||||
time,
|
||||
date,
|
||||
week,
|
||||
month,
|
||||
quarter,
|
||||
year,
|
||||
]
|
||||
label: "Apple Receipt Trial Period: End Time"
|
||||
}
|
||||
|
||||
dimension_group: apple_receipt__trial_period__start {
|
||||
sql: ${TABLE}.apple_receipt.trial_period.start_time ;;
|
||||
type: time
|
||||
timeframes: [
|
||||
raw,
|
||||
time,
|
||||
date,
|
||||
week,
|
||||
month,
|
||||
quarter,
|
||||
year,
|
||||
]
|
||||
label: "Apple Receipt Trial Period: Start Time"
|
||||
}
|
||||
|
||||
dimension_group: created_at {
|
||||
sql: ${TABLE}.created_at ;;
|
||||
type: time
|
||||
|
|
Загрузка…
Ссылка в новой задаче