Skip to content

Commit bf652c4

Browse files
committed
feat: add app_version and is_desktop fields to enterprise_metrics_clients_v1
1 parent 6139665 commit bf652c4

File tree

2 files changed

+50
-0
lines changed
  • sql/moz-fx-data-shared-prod/firefox_desktop_derived/enterprise_metrics_clients_v1

2 files changed

+50
-0
lines changed

sql/moz-fx-data-shared-prod/firefox_desktop_derived/enterprise_metrics_clients_v1/query.sql

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ WITH client_baseline AS (
99
distribution_id,
1010
is_daily_user,
1111
is_dau,
12+
is_desktop,
13+
app_version,
14+
app_version_major,
15+
app_version_minor,
16+
app_version_patch_revision,
1217
FROM
1318
`moz-fx-data-shared-prod.firefox_desktop.baseline_active_users`
1419
WHERE
@@ -36,6 +41,11 @@ WITH client_baseline AS (
3641
legacy_telemetry_client_id,
3742
channel,
3843
is_dau,
44+
is_desktop,
45+
app_version,
46+
app_version_major,
47+
app_version_minor,
48+
app_version_patch_revision,
3949
FROM
4050
active_users_base
4151
WHERE
@@ -49,6 +59,11 @@ WITH client_baseline AS (
4959
channel AS normalized_channel,
5060
distribution_id,
5161
is_dau,
62+
is_desktop,
63+
app_version,
64+
app_version_major,
65+
app_version_minor,
66+
app_version_patch_revision,
5267
FROM
5368
daily_users
5469
LEFT JOIN
@@ -82,7 +97,12 @@ SELECT
8297
sample_id,
8398
normalized_channel,
8499
distribution_id,
100+
app_version,
101+
app_version_major,
102+
app_version_minor,
103+
app_version_patch_revision,
85104
is_dau,
105+
is_desktop,
86106
policies_count,
87107
policies_is_enterprise,
88108
legacy_telemetry_client_id,

sql/moz-fx-data-shared-prod/firefox_desktop_derived/enterprise_metrics_clients_v1/schema.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,42 @@ fields:
3030
description: |
3131
The distribution id associated with the install of Firefox.
3232
33+
- mode: NULLABLE
34+
name: app_version
35+
type: STRING
36+
description: |
37+
User visible version string (e.g. "1.0.3") for the browser.
38+
39+
- mode: NULLABLE
40+
name: app_version_major
41+
type: INTEGER
42+
description: |
43+
Major version of the application (Firefox).
44+
45+
- mode: NULLABLE
46+
name: app_version_minor
47+
type: INTEGER
48+
description: |
49+
Minor version of the application (Firefox).
50+
51+
- mode: NULLABLE
52+
name: app_version_patch_revision
53+
type: INTEGER
54+
description: |
55+
Patch version of the application (Firefox).
56+
3357
- mode: NULLABLE
3458
name: is_dau
3559
type: BOOLEAN
3660
description: |
3761
Indicates whether the client met our definition of dau on the day.
3862
63+
- mode: NULLABLE
64+
name: is_desktop
65+
type: BOOLEAN
66+
description: |
67+
Indicates whether the client met conditions to be counted as Desktop DAU on the day.
68+
3969
- mode: NULLABLE
4070
name: policies_count
4171
type: INTEGER

0 commit comments

Comments
 (0)