-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34e8b9d
commit 5a626ab
Showing
8 changed files
with
54 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
...-shared-prod/telemetry_derived/fx_cert_error_unique_users_normalized_channel_v1/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
SELECT | ||
DATE(submission_timestamp) AS submission_date, | ||
normalized_country_code, | ||
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT( | ||
DISTINCT client_id | ||
) AS bookmarks_added_per_dau, | ||
SUM( | ||
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened | ||
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau | ||
submission_date, | ||
normalized_channel, | ||
COUNT(DISTINCT client_id) AS nbr_unique_users | ||
FROM | ||
`moz-fx-data-shared-prod.telemetry.main_1pct` | ||
`mozdata.telemetry.events` | ||
WHERE | ||
DATE(submission_timestamp) = @submission_date | ||
AND SUBSTR(application.version, 0, 2) >= '84' | ||
AND normalized_channel = 'release' | ||
event_category = 'security.ui.certerror' | ||
AND event_object = 'aboutcerterror' | ||
AND event_method = 'load' | ||
AND submission_date = @submission_date | ||
GROUP BY | ||
submission_date, | ||
normalized_country_code | ||
1, | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 5 additions & 8 deletions
13
sql/moz-fx-data-shared-prod/telemetry_derived/fx_cert_error_unique_users_os_v1/metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
friendly_name: Firefox Health Indicator - Bookmarks By Country | ||
friendly_name: Firefox Cert Error Dashboard - Unique users by os | ||
description: |- | ||
Please provide a description for the query | ||
Unique users experiencing cert error page per day per os | ||
owners: | ||
- kwindau@mozilla.com | ||
- akommasani@mozilla.com | ||
labels: | ||
incremental: true | ||
owner1: kwindau | ||
owner1: akommasani | ||
table_type: aggregate | ||
shredder_mitigation: true | ||
scheduling: | ||
dag_name: bqetl_fx_health_ind_dashboard | ||
dag_name: bqetl_fx_cert_error_privacy_dashboard | ||
bigquery: | ||
time_partitioning: | ||
type: day | ||
field: submission_date | ||
require_partition_filter: false | ||
expiration_days: null | ||
range_partitioning: null | ||
clustering: | ||
fields: | ||
- normalized_country_code | ||
references: {} |
24 changes: 10 additions & 14 deletions
24
sql/moz-fx-data-shared-prod/telemetry_derived/fx_cert_error_unique_users_os_v1/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
SELECT | ||
DATE(submission_timestamp) AS submission_date, | ||
normalized_country_code, | ||
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT( | ||
DISTINCT client_id | ||
) AS bookmarks_added_per_dau, | ||
SUM( | ||
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened | ||
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau | ||
submission_date, | ||
normalized_channel, | ||
COUNT(DISTINCT client_id) AS nbr_unique_users | ||
FROM | ||
`moz-fx-data-shared-prod.telemetry.main_1pct` | ||
`mozdata.telemetry.events` | ||
WHERE | ||
DATE(submission_timestamp) = @submission_date | ||
AND SUBSTR(application.version, 0, 2) >= '84' | ||
AND normalized_channel = 'release' | ||
event_category = 'security.ui.certerror' | ||
AND event_object = 'aboutcerterror' | ||
AND event_method = 'load' | ||
AND submission_date = @submission_date | ||
GROUP BY | ||
submission_date, | ||
normalized_country_code | ||
1, | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
sql/moz-fx-data-shared-prod/telemetry_derived/fx_privacy_dau_agg_v1/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
SELECT | ||
DATE(submission_timestamp) AS submission_date, | ||
normalized_country_code, | ||
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT( | ||
DISTINCT client_id | ||
) AS bookmarks_added_per_dau, | ||
SUM( | ||
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened | ||
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau | ||
event_object, | ||
submission_date, | ||
COUNT(*) AS nbr_events, | ||
COUNT(DISTINCT client_id) AS nbr_distinct_users, | ||
FROM | ||
`moz-fx-data-shared-prod.telemetry.main_1pct` | ||
`moz-fx-data-shared-prod.telemetry.events` | ||
WHERE | ||
DATE(submission_timestamp) = @submission_date | ||
AND SUBSTR(application.version, 0, 2) >= '84' | ||
AND normalized_channel = 'release' | ||
event_category = 'security.ui.protectionspopup' | ||
AND submission_date = @submission_date | ||
GROUP BY | ||
submission_date, | ||
normalized_country_code | ||
event_object | ||
ORDER BY | ||
submission_date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters