Skip to content

Commit a6fb4e6

Browse files
authored
feat(DENG-9984): Create fx_cert_error_unique_users_normalized_channel (Glean version) (#8372)
1 parent 116e79f commit a6fb4e6

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE OR REPLACE VIEW
2+
`moz-fx-data-shared-prod.firefox_desktop.fx_cert_error_unique_users_normalized_channel`
3+
AS
4+
SELECT
5+
*
6+
FROM
7+
`moz-fx-data-shared-prod.firefox_desktop_derived.fx_cert_error_unique_users_normalized_channel_v1`
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
friendly_name: Firefox Cert Error Dashboard - Unique users by normalized channel
2+
description: |-
3+
Unique users experiencing cert error page per day per channel
4+
owners:
5+
6+
labels:
7+
incremental: true
8+
owner1: kwindau
9+
table_type: aggregate
10+
shredder_mitigation: true
11+
scheduling:
12+
dag_name: bqetl_fx_cert_error_privacy_dashboard
13+
bigquery:
14+
time_partitioning:
15+
type: day
16+
field: submission_date
17+
require_partition_filter: false
18+
expiration_days: null
19+
range_partitioning: null
20+
require_column_descriptions: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SELECT
2+
DATE(submission_timestamp) AS submission_date,
3+
normalized_channel,
4+
COUNT(DISTINCT client_id) AS nbr_unique_users
5+
FROM
6+
`moz-fx-data-shared-prod.firefox_desktop.events_stream`
7+
WHERE
8+
event_category = 'security.ui.certerror'
9+
AND event_name = 'load_aboutcerterror'
10+
AND DATE(submission_timestamp) = @submission_date
11+
GROUP BY
12+
DATE(submission_timestamp),
13+
normalized_channel
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
fields:
2+
- mode: NULLABLE
3+
name: submission_date
4+
type: DATE
5+
description: Submission Date
6+
- mode: NULLABLE
7+
name: normalized_channel
8+
type: STRING
9+
description: Normalized Channel
10+
- name: nbr_unique_users
11+
type: INTEGER
12+
mode: NULLABLE
13+
description: Number of Unique users (distinct client ids)

0 commit comments

Comments
 (0)