chore(DO-1886): Add shredder mitigation to more tables (#6535)

* Add shredder mitigation to searchreport v1

* Add mobile search agg for search report v1 to shredder mitigation

* Add smoot usage fxa compressed v2 to shredder mitigation

* Add smoot usage new profiles comp v2 to shredder mitigation
This commit is contained in:
Katie Windau 2024-11-20 11:34:57 -06:00 коммит произвёл GitHub
Родитель 648e5c724c
Коммит 5a4c6c9aed
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
10 изменённых файлов: 161 добавлений и 15 удалений

Просмотреть файл

@ -13,6 +13,7 @@ labels:
dag: bqetl_search_dashboard
owner1: cmorales
owner2: xluo
shredder_mitigation: true
scheduling:
dag_name: bqetl_search_dashboard
depends_on_past: false

Просмотреть файл

@ -46,9 +46,9 @@ FROM
WHERE
submission_date = @submission_date
GROUP BY
1,
2,
3,
4,
5,
6
submission_date,
geo,
locale,
normalized_engine,
os,
app_version

Просмотреть файл

@ -2,45 +2,60 @@ fields:
- name: submission_date
type: DATE
mode: NULLABLE
description: Submission Date
- name: geo
type: STRING
mode: NULLABLE
description: Geo
- name: locale
type: STRING
mode: NULLABLE
description: Locale
- name: engine
type: STRING
mode: NULLABLE
description: Engine
- name: os
type: STRING
mode: NULLABLE
description: Operating System
- name: app_version
type: STRING
mode: NULLABLE
description: App Version
- name: dcc
type: INTEGER
mode: NULLABLE
description: DCC
- name: sap
type: INTEGER
mode: NULLABLE
description: SAP
- name: tagged_sap
type: INTEGER
mode: NULLABLE
description: Tagged SAP
- name: tagged_follow_on
type: INTEGER
mode: NULLABLE
description: Tagged Follow On
- name: search_with_ads
type: INTEGER
mode: NULLABLE
description: Searches with Ads
- name: ad_click
type: INTEGER
mode: NULLABLE
description: Ad Clicks
- name: organic
type: INTEGER
mode: NULLABLE
description: Organic Searches
- name: ad_click_organic
type: INTEGER
mode: NULLABLE
description: Organic Ad Clicks
- name: search_with_ads_organic
type: INTEGER
mode: NULLABLE
description: Organic Searches with Ads

Просмотреть файл

@ -14,6 +14,7 @@ labels:
dag: bqetl_search_dashboard
owner1: cmorales
owner2: xluo
shredder_mitigation: true
scheduling:
dag_name: bqetl_search_dashboard
depends_on_past: false

Просмотреть файл

@ -44,7 +44,7 @@ WHERE
normalized_app_name IN ('Fenix', 'Fennec', 'Firefox Preview', 'Focus')
AND submission_date = @submission_date
GROUP BY
1,
2,
3,
4
submission_date,
country,
product,
normalized_engine

Просмотреть файл

@ -2,36 +2,48 @@ fields:
- name: submission_date
type: DATE
mode: NULLABLE
description: Submission Date
- name: country
type: STRING
mode: NULLABLE
description: Country
- name: product
type: STRING
mode: NULLABLE
description: Product
- name: normalized_engine
type: STRING
mode: NULLABLE
description: Normalized Engine
- name: clients
type: INTEGER
mode: NULLABLE
description: Clients
- name: search_clients
type: INTEGER
mode: NULLABLE
description: Search Clients
- name: sap
type: INTEGER
mode: NULLABLE
description: SAP
- name: tagged_sap
type: INTEGER
mode: NULLABLE
description: Tagged SAP
- name: tagged_follow_on
type: INTEGER
mode: NULLABLE
description: Tagged Follow On
- name: ad_click
type: INTEGER
mode: NULLABLE
description: Ad Click
- name: search_with_ads
type: INTEGER
mode: NULLABLE
description: Search with Ads
- name: organic
type: INTEGER
mode: NULLABLE
description: Organic

Просмотреть файл

@ -1,12 +1,15 @@
---
friendly_name: Smoot Usage FxA Compressed
description: Compressed usage metrics for FxA users.
description: |-
Compressed usage metrics for FxA users.
owners:
- jklukas@mozilla.com
- jklukas@mozilla.com
labels:
application: desktop
incremental: true
schedule: daily
shredder_mitigation: true
dag: bqetl_gud
owner1: jklukas
scheduling:
dag_name: bqetl_gud
bigquery:
@ -14,7 +17,10 @@ bigquery:
type: day
field: submission_date
require_partition_filter: false
expiration_days: null
range_partitioning: null
clustering:
fields:
- usage
- id_bucket
- usage
- id_bucket
references: {}

Просмотреть файл

@ -0,0 +1,101 @@
fields:
- mode: NULLABLE
name: submission_date
type: DATE
description: Submission Date
- mode: NULLABLE
name: usage
type: STRING
description: Usage
- mode: NULLABLE
name: id_bucket
type: INTEGER
description: ID Bucket
- mode: NULLABLE
name: country
type: STRING
description: Country
- mode: NULLABLE
name: locale
type: STRING
description: Locale
- mode: NULLABLE
name: os
type: STRING
description: Operating System
- mode: NULLABLE
name: channel
type: STRING
description: Channel
- mode: NULLABLE
name: attributed
type: BOOLEAN
description: Attributed
- name: metrics
type: RECORD
mode: NULLABLE
description: Metrics
fields:
- name: day_0
type: RECORD
mode: NULLABLE
description: Day 0
fields:
- name: dau
type: INTEGER
mode: NULLABLE
description: DAU - Daily Active Users
- name: wau
type: INTEGER
mode: NULLABLE
description: WAU - Weekly Active Users
- name: mau
type: INTEGER
mode: NULLABLE
description: MAU - Monthly Active Users
- name: active_days_in_week
type: INTEGER
mode: NULLABLE
description: Active Days in Week
- name: day_6
type: RECORD
mode: NULLABLE
description: Day 6
fields:
- name: new_profiles
type: INTEGER
mode: NULLABLE
description: New Profiles
- name: day_13
type: RECORD
mode: NULLABLE
description: Day 13
fields:
- name: new_profiles
type: INTEGER
mode: NULLABLE
description: New Profiles
- name: active_in_week_0
type: INTEGER
mode: NULLABLE
description: Active in Week 0
- name: active_in_week_1
type: INTEGER
mode: NULLABLE
description: Active in Week 1
- name: active_in_weeks_0_and_1
type: INTEGER
mode: NULLABLE
description: Active in Weeks 0 and 1
- name: new_profile_active_in_week_0
type: INTEGER
mode: NULLABLE
description: New Profile Active in Week 0
- name: new_profile_active_in_week_1
type: INTEGER
mode: NULLABLE
description: New Profile Active in Week 1
- name: new_profile_active_in_weeks_0_and_1
type: INTEGER
mode: NULLABLE
description: New Profile Active in Weeks 0 and 1

Просмотреть файл

@ -5,6 +5,7 @@ owners:
- jklukas@mozilla.com
labels:
incremental: true
shredder_mitigation: true
scheduling:
dag_name: bqetl_gud
bigquery:

Просмотреть файл

@ -2,27 +2,36 @@ fields:
- mode: NULLABLE
name: submission_date
type: DATE
description: Submission Date
- mode: NULLABLE
name: usage
type: STRING
description: Usage
- mode: NULLABLE
name: id_bucket
type: INTEGER
description: ID Bucket
- mode: NULLABLE
name: country
type: STRING
description: Country
- mode: NULLABLE
name: locale
type: STRING
description: Locale
- mode: NULLABLE
name: os
type: STRING
description: Operating System
- mode: NULLABLE
name: channel
type: STRING
description: Channel
- mode: NULLABLE
name: attributed
type: BOOLEAN
description: Attributed
- mode: NULLABLE
name: new_profiles
type: INTEGER
description: New Profiles