Skip to content

Commit de5921b

Browse files
authored
feat(DENG-9984): Create fx_privacy_dau_agg using Glean (#8376)
1 parent f9d0606 commit de5921b

File tree

5 files changed

+64
-0
lines changed

5 files changed

+64
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
friendly_name: Firefox Privacy Dashboard - DAU interracting with the privacy panel
2+
description: |-
3+
DAU interacting with the privacy panel
4+
owners:
5+
6+
labels:
7+
owner: kwindau
8+
require_column_descriptions: false
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_privacy_dau_agg`
3+
AS
4+
SELECT
5+
*
6+
FROM
7+
`moz-fx-data-shared-prod.firefox_desktop_derived.fx_privacy_dau_agg_v1`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
friendly_name: Firefox Privacy Dashboard - DAU interracting with the privacy panel
2+
description: |-
3+
DAU interacting with the privacy panel
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
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SELECT
2+
event_name AS event_object,
3+
DATE(submission_timestamp) AS submission_date,
4+
COUNT(*) AS nbr_events,
5+
COUNT(DISTINCT client_id) AS nbr_distinct_users,
6+
FROM
7+
`moz-fx-data-shared-prod.firefox_desktop.events_stream`
8+
WHERE
9+
event_category = 'security.ui.protectionspopup'
10+
AND DATE(submission_timestamp) = @submission_date
11+
GROUP BY
12+
event_name,
13+
DATE(submission_timestamp)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
fields:
2+
- mode: NULLABLE
3+
name: submission_date
4+
type: DATE
5+
description: Submission Date
6+
- mode: NULLABLE
7+
name: event_object
8+
type: STRING
9+
description: Submission Date
10+
- mode: NULLABLE
11+
name: nbr_events
12+
type: INTEGER
13+
description: Number of events
14+
- name: nbr_distinct_users
15+
type: INTEGER
16+
mode: NULLABLE
17+
description: Number of distinct users

0 commit comments

Comments
 (0)